From 435deffefbb07d9a0cafef445e4bfa14cd87b2c0 Mon Sep 17 00:00:00 2001 From: Pavel Dovgalyuk Date: Tue, 17 May 2016 10:28:48 +0300 Subject: SDL2: add bgrx pixel format This patch adds support of b8g8r8x8 pixel format for SDL2. Signed-off-by: Pavel Dovgalyuk Message-id: 20160517072848.4540.34695.stgit@PASHA-ISP Signed-off-by: Gerd Hoffmann --- ui/sdl2-2d.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') 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(); } -- cgit v1.2.3