revert changes in graphics.c which caused build to fail