i9300: update graphics.c to fix build