Revert "Fix graphics.c to build with new AOSP"

This reverts commit 617815f560add7399171c0e4ac6e0ed5ae432260.