Revert "Revert "Adding required ST-Ericsson changes to graphics.h" Use oliverg96 fixes This reverts commit 975b7395c6d0f4e1dc961e7cd86ed8f8e02688b3."

This reverts commit 170ac0e06818df990f43569db62a2bd16442a090.

Change-Id: Ie463f9b3b64b5ba58267fc38387f4eac0e99e859