aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>2016-05-17 10:28:48 +0300
committerGerd Hoffmann <kraxel@redhat.com>2016-06-03 08:23:26 +0200
commit435deffefbb07d9a0cafef445e4bfa14cd87b2c0 (patch)
tree1316f039bb0b284d5475c50561270cce95aec26c /ui
parent41cc5239f3fdb992f9dc76e22161179fdb50026c (diff)
SDL2: add bgrx pixel format
This patch adds support of b8g8r8x8 pixel format for SDL2. Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-id: 20160517072848.4540.34695.stgit@PASHA-ISP Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/sdl2-2d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c
index 95930061ea..8ab68d67b9 100644
--- a/ui/sdl2-2d.c
+++ b/ui/sdl2-2d.c
@@ -116,6 +116,9 @@ void sdl2_2d_switch(DisplayChangeListener *dcl,
case PIXMAN_r8g8b8x8:
format = SDL_PIXELFORMAT_RGBA8888;
break;
+ case PIXMAN_b8g8r8x8:
+ format = SDL_PIXELFORMAT_BGRX8888;
+ break;
default:
g_assert_not_reached();
}