diff --git a/src/gu/pspgu.h b/src/gu/pspgu.h index d0e482e5..dcbabc9d 100644 --- a/src/gu/pspgu.h +++ b/src/gu/pspgu.h @@ -1537,6 +1537,17 @@ void* guGetStaticVramBuffer(unsigned int width, unsigned int height, unsigned in **/ void* guGetStaticVramTexture(unsigned int width, unsigned int height, unsigned int psm); +/** + * Get state of display + * + * Available states are: + * - GU_TRUE (1) - Display is turned on + * - GU_FALSE (0) - Display is turned off + * + * @return State of the display +**/ +int guGetDisplayState(); + /**@}*/ #if defined(__cplusplus) diff --git a/src/gu/sceGuDisplay.c b/src/gu/sceGuDisplay.c index 873102a0..6006c524 100644 --- a/src/gu/sceGuDisplay.c +++ b/src/gu/sceGuDisplay.c @@ -21,3 +21,8 @@ int sceGuDisplay(int state) gu_display_on = state; return state; } + +int guGetDisplayState() +{ + return gu_display_on; +}