Change style to conform to ctrulib conventions

This commit is contained in:
Michael Scire 2016-09-04 05:36:39 -07:00
parent 6840625bc7
commit 3f400a8ef9
2 changed files with 6 additions and 3 deletions

View File

@ -33,5 +33,6 @@ Result GSPLCD_PowerOffBacklight(u32 screen);
/**
* @brief Gets the LCD screens' vendors. Stubbed on old 3ds.
* @param vendor Pointer to output the screen vendors to.
*/
Result GSPLCD_GetVendor(void);
Result GSPLCD_GetVendors(u8 *vendors);

View File

@ -52,7 +52,7 @@ Result GSPLCD_PowerOffBacklight(u32 screen)
return cmdbuf[1];
}
Result GSPLCD_GetVendor(void)
Result GSPLCD_GetVendors(u8 *vendors)
{
u32 *cmdbuf = getThreadCommandBuffer();
@ -60,7 +60,9 @@ Result GSPLCD_GetVendor(void)
Result ret=0;
if (R_FAILED(ret = svcSendSyncRequest(gspLcdHandle))) return ret;
if(vendors) *vendors = cmdbuf[2] & 0xFF;
return cmdbuf[2];
return cmdbuf[1];
}