diff mbox

[PULL,4/7] SDL2: add bgrx pixel format

Message ID 1464937468-14816-5-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann June 3, 2016, 7:04 a.m. UTC
From: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>

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>
---
 ui/sdl2-2d.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/ui/sdl2-2d.c b/ui/sdl2-2d.c
index 9593006..8ab68d6 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();
     }