Update graphics.c

Update for Qcom BSP support from CyanogenMod