mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 10:20:57 +00:00
Merge pull request #12331 from bulzipke/master
(3DS) Load overlay texture images as BGR colors
This commit is contained in:
commit
71836cacdb
@ -513,10 +513,6 @@ static void* ctr_init(const video_info_t* video,
|
|||||||
ctr->vsync = video->vsync;
|
ctr->vsync = video->vsync;
|
||||||
ctr->current_buffer_top = 0;
|
ctr->current_buffer_top = 0;
|
||||||
|
|
||||||
#if defined(HAVE_OVERLAY) || defined(HAVE_GFX_WIDGETS)
|
|
||||||
video_driver_set_rgba();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Only O3DS and O3DSXL support running in 'dual-framebuffer'
|
/* Only O3DS and O3DSXL support running in 'dual-framebuffer'
|
||||||
* mode with the parallax barrier disabled
|
* mode with the parallax barrier disabled
|
||||||
* (i.e. these are the only platforms that can use
|
* (i.e. these are the only platforms that can use
|
||||||
@ -1399,10 +1395,10 @@ static bool ctr_overlay_load(void *data,
|
|||||||
for (j = 0; j < images[i].width * images[i].height; j++)
|
for (j = 0; j < images[i].width * images[i].height; j++)
|
||||||
{
|
{
|
||||||
*dst =
|
*dst =
|
||||||
((*src >> 8) & 0x00FF00)
|
((*src << 8) & 0xFF000000)
|
||||||
| ((*src >> 24) & 0xFF)
|
| ((*src << 8) & 0x00FF0000)
|
||||||
| ((*src << 8) & 0xFF0000)
|
| ((*src << 8) & 0x0000FF00)
|
||||||
| ((*src << 24) & 0xFF000000);
|
| ((*src >> 24) & 0x000000FF);
|
||||||
dst++;
|
dst++;
|
||||||
src++;
|
src++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user