Merge pull request #220 from pspdev/add-get-display-state

Add guGetDisplayState function to libgu
This commit is contained in:
Wouter Wijsman
2024-07-15 16:57:37 +02:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -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)

View File

@@ -21,3 +21,8 @@ int sceGuDisplay(int state)
gu_display_on = state;
return state;
}
int guGetDisplayState()
{
return gu_display_on;
}