update graphics.c to build

build breaks with latest recovery changes
fix based on https://github.com/omnirom/android_bootable_recovery/commit/65fdcddec6c616bf0e1d3ee39bca242c05094410