提交 435deffe 编写于 作者: P Pavel Dovgalyuk 提交者: Gerd Hoffmann

SDL2: add bgrx pixel format

This patch adds support of b8g8r8x8 pixel format for SDL2.
Signed-off-by: NPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-id: 20160517072848.4540.34695.stgit@PASHA-ISP
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 41cc5239
...@@ -116,6 +116,9 @@ void sdl2_2d_switch(DisplayChangeListener *dcl, ...@@ -116,6 +116,9 @@ void sdl2_2d_switch(DisplayChangeListener *dcl,
case PIXMAN_r8g8b8x8: case PIXMAN_r8g8b8x8:
format = SDL_PIXELFORMAT_RGBA8888; format = SDL_PIXELFORMAT_RGBA8888;
break; break;
case PIXMAN_b8g8r8x8:
format = SDL_PIXELFORMAT_BGRX8888;
break;
default: default:
g_assert_not_reached(); g_assert_not_reached();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册