mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-24 04:32:36 +00:00
Merge pull request #220 from pspdev/add-get-display-state
Add guGetDisplayState function to libgu
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -21,3 +21,8 @@ int sceGuDisplay(int state)
|
||||
gu_display_on = state;
|
||||
return state;
|
||||
}
|
||||
|
||||
int guGetDisplayState()
|
||||
{
|
||||
return gu_display_on;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user