Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sdl12_compat for openSUSE:Factory 
checked in at 2022-08-11 18:31:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sdl12_compat (Old)
 and      /work/SRC/openSUSE:Factory/.sdl12_compat.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sdl12_compat"

Thu Aug 11 18:31:17 2022 rev:3 rq:994185 version:1.2.52

Changes:
--------
--- /work/SRC/openSUSE:Factory/sdl12_compat/sdl12_compat.changes        
2022-06-17 21:18:43.758650266 +0200
+++ /work/SRC/openSUSE:Factory/.sdl12_compat.new.1521/sdl12_compat.changes      
2022-08-11 18:31:20.762125142 +0200
@@ -1,0 +2,6 @@
+Mon Aug  8 14:18:26 UTC 2022 - Jan Engelhardt <jeng...@inai.de>
+
+- Add 0001-Use-SDL_PIXELFORMAT_RGB888-for-24-bit-surfaces.patch
+  to rectify BGR order in older schismtracker.
+
+-------------------------------------------------------------------

New:
----
  0001-Use-SDL_PIXELFORMAT_RGB888-for-24-bit-surfaces.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sdl12_compat.spec ++++++
--- /var/tmp/diff_new_pack.1DqMuB/_old  2022-08-11 18:31:21.250126285 +0200
+++ /var/tmp/diff_new_pack.1DqMuB/_new  2022-08-11 18:31:21.258126304 +0200
@@ -30,6 +30,7 @@
 Source9:        %name-rpmlintrc
 Patch1:         0001-SDL_GetWMInfo-work-like-1.2-when-SDL_SetVideoMode-ha.patch
 Patch2:         0001-Set-pixels-in-SDL_CreateYUVOverlay-Fix-164.patch
+Patch3:         0001-Use-SDL_PIXELFORMAT_RGB888-for-24-bit-surfaces.patch
 BuildRequires:  cmake
 BuildRequires:  pkg-config
 BuildRequires:  pkgconfig(sdl2)

++++++ 0001-Use-SDL_PIXELFORMAT_RGB888-for-24-bit-surfaces.patch ++++++
>From 940352955ffef7ab4113bc28a2454a8f66b8e3f7 Mon Sep 17 00:00:00 2001
From: David Gow <da...@ingeniumdigital.com>
Date: Mon, 2 May 2022 17:43:36 +0800
Subject: [PATCH] Use SDL_PIXELFORMAT_RGB888 for 24-bit surfaces

We're currently using SDL_PIXELFORMAT_RGB24, which results in
schismtracker being blue when resized (#183).

While it's possible that RGB888 is wrong on big-endian systems, it at
least matches what we do for 16-bit (RGB565) and 32-bit (XRGB8888)
formats, so if we're wrong, we'll at least be consistently wrong.
---
 src/SDL12_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index db22c30..78e4d7e 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -5231,7 +5231,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 
flags12)
     switch (bpp) {
         case  8: appfmt = SDL_PIXELFORMAT_INDEX8; break;
         case 16: appfmt = SDL_PIXELFORMAT_RGB565; FIXME("bgr instead of 
rgb?"); break;
-        case 24: appfmt = SDL_PIXELFORMAT_RGB24; FIXME("bgr instead of rgb?"); 
break;
+        case 24: appfmt = SDL_PIXELFORMAT_RGB888; FIXME("bgr instead of 
rgb?"); break;
         case 32: appfmt = SDL_PIXELFORMAT_XRGB8888; FIXME("bgr instead of 
rgb?"); break;
         default: SDL20_SetError("Unsupported bits-per-pixel"); return NULL;
     }
-- 
2.37.1

Reply via email to