summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-16 20:36:07 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-16 20:36:07 +0100
commit47609ba69f2567e82fe7c72298d0ef321400273b (patch)
tree477dc19e506dc8dc8fa5951ca5bb288a997b720e /modules
parent055e3dff56b39b973774605b49c787c03d6a6d78 (diff)
sdl2: use SDL_PIXELFORMAT_ARGB8888 instead
thanks to @hargut for testing and tips
Diffstat (limited to 'modules')
-rw-r--r--modules/sdl2/sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sdl2/sdl.c b/modules/sdl2/sdl.c
index 938039d..2ecd108 100644
--- a/modules/sdl2/sdl.c
+++ b/modules/sdl2/sdl.c
@@ -37,7 +37,7 @@ static uint32_t match_fmt(enum vidfmt fmt)
case VID_FMT_YUV420P: return SDL_PIXELFORMAT_IYUV;
case VID_FMT_NV12: return SDL_PIXELFORMAT_NV12;
- case VID_FMT_RGB32: return SDL_PIXELFORMAT_BGRA32;
+ case VID_FMT_RGB32: return SDL_PIXELFORMAT_ARGB8888;
default: return SDL_PIXELFORMAT_UNKNOWN;
}
}