mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-07 10:50:35 +00:00
(RGUI) Add some Switch ifdefs to RGUI
This commit is contained in:
parent
bf75e6b9d7
commit
9cbd7ec6f3
@ -95,6 +95,10 @@ static uint16_t rgui_gray_filler(rgui_t *rgui, unsigned x, unsigned y)
|
||||
unsigned col = (((x >> shft) + (y >> shft)) & 1) + 1;
|
||||
#if defined(GEKKO) || defined(PSP)
|
||||
return (6 << 12) | (col << 8) | (col << 4) | (col << 0);
|
||||
#elif defined(SWITCH)
|
||||
return (((31 * (54)) / 255) << 11) |
|
||||
(((63 * (54)) / 255) << 5) |
|
||||
((31 * (54)) / 255);
|
||||
#else
|
||||
return (col << 13) | (col << 9) | (col << 5) | (12 << 0);
|
||||
#endif
|
||||
@ -106,6 +110,10 @@ static uint16_t rgui_green_filler(rgui_t *rgui, unsigned x, unsigned y)
|
||||
unsigned col = (((x >> shft) + (y >> shft)) & 1) + 1;
|
||||
#if defined(GEKKO) || defined(PSP)
|
||||
return (6 << 12) | (col << 8) | (col << 5) | (col << 0);
|
||||
#elif defined(SWITCH)
|
||||
return (((31 * (54)) / 255) << 11) |
|
||||
(((63 * (109)) / 255) << 5) |
|
||||
((31 * (54)) / 255);
|
||||
#else
|
||||
return (col << 13) | (col << 10) | (col << 5) | (12 << 0);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user