qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SDL2: add bgrx pixel format
@ 2016-05-17  7:28 Pavel Dovgalyuk
  2016-05-23 13:25 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Dovgalyuk @ 2016-05-17  7:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: pbonzini, kraxel

This patch adds support of b8g8r8x8 pixel format for SDL2.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
---
 ui/sdl2-2d.c |    3 +++
 1 file changed, 3 insertions(+)

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();
     }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-23 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-17  7:28 [Qemu-devel] [PATCH] SDL2: add bgrx pixel format Pavel Dovgalyuk
2016-05-23 13:25 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).