Rename param 'state' to 'disable' as requested.

This commit is contained in:
Joel 2017-08-06 19:28:24 -04:00
parent 71ec94d969
commit 8fc2426a7f
4 changed files with 8 additions and 8 deletions

View File

@ -220,6 +220,6 @@ Result GSPGPU_TriggerCmdReqQueue(void);
/** /**
* @brief Sets 3D_LEDSTATE to the input state value. * @brief Sets 3D_LEDSTATE to the input state value.
* @param state False = 3D LED enable, true = 3D LED disable. * @param disable False = 3D LED enable, true = 3D LED disable.
*/ */
Result GSPGPU_SetLedForceOff(bool state); Result GSPGPU_SetLedForceOff(bool disable);

View File

@ -39,9 +39,9 @@ Result GSPLCD_PowerOffBacklight(u32 screen);
/** /**
* @brief Sets 3D_LEDSTATE to the input state value. * @brief Sets 3D_LEDSTATE to the input state value.
* @param state False = 3D LED enable, true = 3D LED disable. * @param disable False = 3D LED enable, true = 3D LED disable.
*/ */
Result GSPLCD_SetLedForceOff(bool state); Result GSPLCD_SetLedForceOff(bool disable);
/** /**
* @brief Gets the LCD screens' vendors. Stubbed on old 3ds. * @brief Gets the LCD screens' vendors. Stubbed on old 3ds.

View File

@ -430,12 +430,12 @@ Result GSPGPU_RestoreVramSysArea(void)
return cmdbuf[1]; return cmdbuf[1];
} }
Result GSPGPU_SetLedForceOff(bool state) Result GSPGPU_SetLedForceOff(bool disable)
{ {
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
cmdbuf[0] = IPC_MakeHeader(0x1C,1,0); // 0x1C0040 cmdbuf[0] = IPC_MakeHeader(0x1C,1,0); // 0x1C0040
cmdbuf[1] = state & 0xFF; cmdbuf[1] = disable & 0xFF;
Result ret=0; Result ret=0;
if (R_FAILED(ret = svcSendSyncRequest(gspGpuHandle))) return ret; if (R_FAILED(ret = svcSendSyncRequest(gspGpuHandle))) return ret;

View File

@ -76,12 +76,12 @@ Result GSPLCD_PowerOffBacklight(u32 screen)
return cmdbuf[1]; return cmdbuf[1];
} }
Result GSPLCD_SetLedForceOff(bool state) Result GSPLCD_SetLedForceOff(bool disable)
{ {
u32 *cmdbuf = getThreadCommandBuffer(); u32 *cmdbuf = getThreadCommandBuffer();
cmdbuf[0] = IPC_MakeHeader(0x13,1,0); // 0x130040 cmdbuf[0] = IPC_MakeHeader(0x13,1,0); // 0x130040
cmdbuf[1] = state & 0xFF; cmdbuf[1] = disable & 0xFF;
Result ret=0; Result ret=0;
if (R_FAILED(ret = svcSendSyncRequest(gspLcdHandle))) return ret; if (R_FAILED(ret = svcSendSyncRequest(gspLcdHandle))) return ret;