mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Buildfix
This commit is contained in:
parent
2a42983b4f
commit
7e9945cde9
@ -165,15 +165,17 @@ static bool switch_frame(void *data, const void *frame,
|
||||
{
|
||||
for(y = 0; y < height; y++)
|
||||
{
|
||||
unsigned subx, suby;
|
||||
uint32_t pixel = 0;
|
||||
|
||||
if (sw->rgb32)
|
||||
{
|
||||
const uint32_t *frame_pixels = frame;
|
||||
pixel = frame_pixels[(y*pitch/sizeof(uint32_t)) + x];
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
const uint16_t *frame_pixels = frame;
|
||||
unsigned subx, suby;
|
||||
uint32_t spixel = frame_pixels[(y*pitch/sizeof(uint16_t)) + x];
|
||||
uint8_t r = (spixel >> 11) & 31;
|
||||
uint8_t g = (spixel >> 5) & 63;
|
||||
@ -434,4 +436,4 @@ video_driver_t video_switch = {
|
||||
NULL, /* overlay_interface */
|
||||
#endif
|
||||
switch_get_poke_interface,
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user