Change the enum to use BIT and replace u32 with the enum type.

This commit is contained in:
thedax 2015-10-01 13:00:38 -04:00
parent 5426fba742
commit 861c0a10b5
2 changed files with 7 additions and 8 deletions

View File

@ -50,9 +50,9 @@ typedef enum
typedef enum typedef enum
{ {
GSPLCD_TOP=1, GSPLCD_TOP = BIT(0),
GSPLCD_BOTTOM=2, GSPLCD_BOTTOM = BIT(1),
GSPLCD_BOTH=3, GSPLCD_BOTH = GSPLCD_TOP | GSPLCD_BOTTOM,
}GSPLCD_Screens; }GSPLCD_Screens;
Result gspInit(); Result gspInit();
@ -90,6 +90,5 @@ Result GSPGPU_UnregisterInterruptRelayQueue(Handle* handle);
Result GSPGPU_TriggerCmdReqQueue(Handle *handle); Result GSPGPU_TriggerCmdReqQueue(Handle *handle);
Result GSPGPU_SubmitGxCommand(u32* sharedGspCmdBuf, u32 gxCommand[0x8], Handle* handle); Result GSPGPU_SubmitGxCommand(u32* sharedGspCmdBuf, u32 gxCommand[0x8], Handle* handle);
// 1 = top, 2 = bottom, 3 = both Result GSPLCD_PowerOffBacklight(GSPLCD_Screens screen);
Result GSPLCD_PowerOffBacklight(u32 screen); Result GSPLCD_PowerOnBacklight(GSPLCD_Screens screen);
Result GSPLCD_PowerOnBacklight(u32 screen);

View File

@ -443,7 +443,7 @@ void gspLcdExit()
if(gspLcdHandle)svcCloseHandle(gspLcdHandle); if(gspLcdHandle)svcCloseHandle(gspLcdHandle);
} }
Result GSPLCD_PowerOffBacklight(u32 screen) Result GSPLCD_PowerOffBacklight(GSPLCD_Screens screen)
{ {
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
@ -455,7 +455,7 @@ Result GSPLCD_PowerOffBacklight(u32 screen)
return ret; return ret;
} }
Result GSPLCD_PowerOnBacklight(u32 screen) Result GSPLCD_PowerOnBacklight(GSPLCD_Screens screen)
{ {
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();