Hello community,

here is the log from the commit of package SDL2 for openSUSE:Factory checked in 
at 2016-11-03 11:09:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/SDL2 (Old)
 and      /work/SRC/openSUSE:Factory/.SDL2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SDL2"

Changes:
--------
--- /work/SRC/openSUSE:Factory/SDL2/SDL2.changes        2016-03-26 
15:23:46.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.SDL2.new/SDL2.changes   2016-11-03 
11:09:41.000000000 +0100
@@ -1,0 +2,64 @@
+Sun Oct 23 08:00:21 UTC 2016 - [email protected]
+
+- Backported commit 5184186d4366 and fbf9b0e3589a as
+  SDL2-ppc64-declaration-after-statement.patch to fix build
+  on ppc64/ppc64le 
+
+-------------------------------------------------------------------
+Thu Oct 20 13:47:14 UTC 2016 - [email protected]
+
+- Update to 2.0.5
+  General:
+  * Implemented audio capture support for some platforms
+  * Added SDL_DequeueAudio() to retrieve audio when buffer 
+    queuing is turned on for audio capture
+  * Added events for dragging and dropping text
+  * Added events for dragging and dropping multiple items
+  * By default the click raising a window will not be 
+    delivered to the SDL application. You can set the hint 
+    SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to "1" to allow that click 
+    through to the window.
+  * Saving a surface with an alpha channel as a BMP will use a 
+    newer BMP format that supports alpha information. You can 
+    set the hint SDL_HINT_BMP_SAVE_LEGACY_FORMAT to "1" to use 
+    the old format.
+  * Added SDL_GetHintBoolean() to get the boolean value of a 
+    hint
+  * Added SDL_RenderSetIntegerScale() to set whether to 
+    smoothly scale or use integral multiples of the viewport 
+    size when scaling the rendering output
+  * Added SDL_CreateRGBSurfaceWithFormat() and 
+    SDL_CreateRGBSurfaceWithFormatFrom() to create an SDL 
+    surface with a specific pixel format
+  * Added SDL_GetDisplayUsableBounds() which returns the area 
+    usable for windows. For example, on Mac OS X, this subtracts 
+    the area occupied by the menu bar and dock.
+  * Added SDL_GetWindowBordersSize() which returns the size of 
+    the window's borders around the client area
+  * Added a window event SDL_WINDOWEVENT_HIT_TEST when a 
+    window had a hit test that wasn't SDL_HITTEST_NORMAL (e.g. 
+    in the title bar or window frame)
+  * Added SDL_SetWindowResizable() to change whether a window 
+    is resizable
+  * Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity() to 
+    affect the window transparency
+  * Added SDL_SetWindowModalFor() to set a window as modal for 
+    another window
+  * Added support for AUDIO_U16LSB and AUDIO_U16MSB to 
+    SDL_MixAudioFormat()
+  * Fixed flipped images when reading back from target 
+    textures when using the OpenGL renderer
+  * Fixed texture color modulation with SDL_BLENDMODE_NONE 
+    when using the OpenGL renderer
+  * Fixed bug where the alpha value of colorkeys was ignored 
+    when blitting in some cases
+  Linux:
+  * Added support for the Fcitx IME
+  * Added a window event SDL_WINDOWEVENT_TAKE_FOCUS when a 
+    window manager asks the SDL window whether it wants to take 
+    focus.
+  * Refresh rates are now rounded instead of truncated, e.g. 
+    59.94 Hz is rounded up to 60 Hz instead of 59.
+  * Added initial support for touchscreens on Raspberry Pi
+
+-------------------------------------------------------------------

Old:
----
  SDL2-2.0.4.tar.gz
  SDL2-2.0.4.tar.gz.sig

New:
----
  SDL2-2.0.5.tar.gz
  SDL2-2.0.5.tar.gz.sig
  SDL2-ppc64-declaration-after-statement.patch

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

Other differences:
------------------
++++++ SDL2.spec ++++++
--- /var/tmp/diff_new_pack.SqyW5a/_old  2016-11-03 11:09:42.000000000 +0100
+++ /var/tmp/diff_new_pack.SqyW5a/_new  2016-11-03 11:09:42.000000000 +0100
@@ -18,7 +18,7 @@
 
 Name:           SDL2
 %define lname   libSDL2-2_0-0
-Version:        2.0.4
+Version:        2.0.5
 Release:        0
 Summary:        Simple DirectMedia Layer Library
 License:        Zlib
@@ -30,6 +30,9 @@
 Source2:        http://libsdl.org/release/%name-%version.tar.gz.sig
 Source3:        %name.keyring
 Source4:        baselibs.conf
+# PATCH-FIX-UPSTREAM SDL2-declaration-after-statement.patch
+# backported to fix build on Factory/ppc64, cf. 
https://bugzilla.libsdl.org/show_bug.cgi?id=3466
+Patch0:         %{name}-ppc64-declaration-after-statement.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  cmake
 BuildRequires:  dos2unix
@@ -104,6 +107,9 @@
 
 %prep
 %setup -q
+%ifarch ppc64 ppc64le
+%patch0 -p1
+%endif
 dos2unix WhatsNew.txt
 dos2unix TODO.txt
 dos2unix BUGS.txt

++++++ SDL2-2.0.4.tar.gz -> SDL2-2.0.5.tar.gz ++++++
++++ 39590 lines of diff (skipped)

++++++ SDL2-ppc64-declaration-after-statement.patch ++++++
# https://bugzilla.libsdl.org/show_bug.cgi?id=3466
# commits 5184186d4366 and fbf9b0e3589a
#
diff -udpr SDL2-2.0.5.orig/src/video/SDL_blit_N.c 
SDL2-2.0.5/src/video/SDL_blit_N.c
--- SDL2-2.0.5.orig/src/video/SDL_blit_N.c      2016-10-20 05:56:26.000000000 
+0200
+++ SDL2-2.0.5/src/video/SDL_blit_N.c   2016-10-23 09:58:57.319897519 +0200
@@ -118,12 +118,6 @@ calc_swizzle32(const SDL_PixelFormat * s
         16, 8, 0, 24,
         0, NULL
     };
-    if (!srcfmt) {
-        srcfmt = &default_pixel_format;
-    }
-    if (!dstfmt) {
-        dstfmt = &default_pixel_format;
-    }
     const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
                                                        0x04, 0x04, 0x04, 0x04,
                                                        0x08, 0x08, 0x08, 0x08,
@@ -131,11 +125,20 @@ calc_swizzle32(const SDL_PixelFormat * s
                                                        0x0C);
     vector unsigned char vswiz;
     vector unsigned int srcvec;
+    Uint32 rmask, gmask, bmask, amask;
+
+    if (!srcfmt) {
+        srcfmt = &default_pixel_format;
+    }
+    if (!dstfmt) {
+        dstfmt = &default_pixel_format;
+    }
+
 #define RESHIFT(X) (3 - ((X) >> 3))
-    Uint32 rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift);
-    Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
-    Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
-    Uint32 amask;
+    rmask = RESHIFT(srcfmt->Rshift) << (dstfmt->Rshift);
+    gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
+    bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
+
     /* Use zero for alpha if either surface doesn't have alpha */
     if (dstfmt->Amask) {
         amask =
@@ -147,6 +150,7 @@ calc_swizzle32(const SDL_PixelFormat * s
                           0xFFFFFFFF);
     }
 #undef RESHIFT
+
     ((unsigned int *) (char *) &srcvec)[0] = (rmask | gmask | bmask | amask);
     vswiz = vec_add(plus, (vector unsigned char) vec_splat(srcvec, 0));
     return (vswiz);

Reply via email to