Update graphics.c

Fixed build error