mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
Err ... 32-bit color was RGBA, not ARGB.
This commit is contained in:
parent
9fb827d238
commit
f22e964cc0
@ -233,7 +233,7 @@ static bool setup_video(ext_t *ext, const video_info_t *video, const input_drive
|
||||
.aspect_ratio = g_settings.video.aspect_ratio,
|
||||
.smooth = video->smooth,
|
||||
.input_scale = video->input_scale,
|
||||
.color_format = video->rgb32 ? SSNES_COLOR_FORMAT_ARGB8888 : SSNES_COLOR_FORMAT_XRGB1555,
|
||||
.color_format = video->rgb32 ? SSNES_COLOR_FORMAT_RGBA8888 : SSNES_COLOR_FORMAT_XRGB1555,
|
||||
.xml_shader = g_settings.video.bsnes_shader_path,
|
||||
.cg_shader = g_settings.video.cg_shader_path,
|
||||
.ttf_font = *g_settings.video.font_path ? g_settings.video.font_path : NULL,
|
||||
|
@ -44,7 +44,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define SSNES_COLOR_FORMAT_XRGB1555 0
|
||||
#define SSNES_COLOR_FORMAT_ARGB8888 1
|
||||
#define SSNES_COLOR_FORMAT_RGBA8888 1
|
||||
|
||||
typedef struct ssnes_video_info
|
||||
{
|
||||
@ -90,7 +90,7 @@ typedef struct ssnes_video_info
|
||||
// Defines the coloring format used of the input frame.
|
||||
// XRGB1555 format is 16-bit and has byte ordering: 0RRRRRGGGGGBBBBB,
|
||||
// in native endian.
|
||||
// ARGB8888 is AAAAAAAARRRRRRRRGGGGGGGGBBBBBBBB, native endian.
|
||||
// RGBA8888 is RRRRRRRRGGGGGGGGBBBBBBBBAAAAAAAA, native endian.
|
||||
// Alpha channel should be disregarded.
|
||||
int color_format;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user