[gegl] sdl2-display: fix component order
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] sdl2-display: fix component order
- Date: Sat, 29 Aug 2020 20:58:20 +0000 (UTC)
commit ddacf40ed7855f66c288e6599cdd04a416d40c49
Author: Øyvind Kolås <pippin gimp org>
Date: Sat Aug 29 22:55:19 2020 +0200
sdl2-display: fix component order
We are using the SDL2 pixel format SDL_PIXELFORMAT_RGBA32, which is
endianness independent in RGBA order, wheras we were using BGRA.
operations/external/sdl2-display.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/operations/external/sdl2-display.c b/operations/external/sdl2-display.c
index a3bab50a5..a56542a43 100644
--- a/operations/external/sdl2-display.c
+++ b/operations/external/sdl2-display.c
@@ -151,13 +151,7 @@ process (GeglOperation *operation,
gegl_buffer_get (input,
NULL,
1.0,
- babl_format_new (babl_model ("R'G'B'A"),
- babl_type ("u8"),
- babl_component ("B'"),
- babl_component ("G'"),
- babl_component ("R'"),
- babl_component ("A"),
- NULL),
+ babl_format ("R'G'B'A u8"),
state->screen->pixels, GEGL_AUTO_ROWSTRIDE,
GEGL_ABYSS_NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]