Update graphics.c

Thanks Rox and frapeti