pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/SDL2



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Oct 28 19:13:44 UTC 2016

Modified Files:
        pkgsrc/devel/SDL2: Makefile distinfo
        pkgsrc/devel/SDL2/patches: patch-src_audio_bsd_SDL__bsdaudio.c

Log Message:
Changes 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

Windows:
* Added a hint SDL_HINT_WINDOWS_DISABLE_THREAD_NAMING to prevent SDL from raising a debugger exception to name threads. This exception can cause problems with .NET applications when running under a 
debugger.
* The hint SDL_HINT_THREAD_STACK_SIZE is now supported on Windows
* Fixed XBox controller triggers automatically being pulled at startup
* The first icon from the executable is used as the default window icon at runtime
* Fixed SDL log messages being printed twice if SDL was built with C library support
* Reset dead keys when the SDL window loses focus, so dead keys pressed in SDL applications don't affect text input into other applications.

Mac OS X:
* Fixed selecting the dummy video driver
* The caps lock key now generates a pressed event when pressed and a released event when released, instead of a press/release event pair when pressed.
* Fixed mouse wheel events on Mac OS X 10.12
* The audio driver has been updated to use AVFoundation for better compatibility with newer versions of Mac OS X

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

OpenBSD:
* SDL_GetBasePath() is now implemented on OpenBSD

iOS:
* Added support for dynamically loaded objects on iOS 8 and newer

tvOS:
* Added support for Apple TV
* Added a hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION to control whether he Apple TV remote's joystick axes will automatically match the rotation of the remote.

Android:
* Fixed SDL not resizing window when Android screen resolution changes
* Corrected the joystick Z axis reporting for the accelerometer

Emscripten (running in a web browser):
* Many bug fixes and improvements


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/SDL2/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/SDL2/distinfo
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/SDL2/Makefile
diff -u pkgsrc/devel/SDL2/Makefile:1.17 pkgsrc/devel/SDL2/Makefile:1.18
--- pkgsrc/devel/SDL2/Makefile:1.17     Thu Aug  4 17:03:35 2016
+++ pkgsrc/devel/SDL2/Makefile  Fri Oct 28 19:13:44 2016
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2016/08/04 17:03:35 ryoon Exp $
+# $NetBSD: Makefile,v 1.18 2016/10/28 19:13:44 adam Exp $
 
-DISTNAME=      SDL2-2.0.4
-PKGREVISION=   1
+DISTNAME=      SDL2-2.0.5
 CATEGORIES=    devel
 MASTER_SITES=  http://www.libsdl.org/release/
 

Index: pkgsrc/devel/SDL2/distinfo
diff -u pkgsrc/devel/SDL2/distinfo:1.19 pkgsrc/devel/SDL2/distinfo:1.20
--- pkgsrc/devel/SDL2/distinfo:1.19     Sun Jan  3 11:15:12 2016
+++ pkgsrc/devel/SDL2/distinfo  Fri Oct 28 19:13:44 2016
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.19 2016/01/03 11:15:12 wiz Exp $
+$NetBSD: distinfo,v 1.20 2016/10/28 19:13:44 adam Exp $
 
-SHA1 (SDL2-2.0.4.tar.gz) = 470a23dfc4b6220c687925ebbe5fe96287f8fb08
-RMD160 (SDL2-2.0.4.tar.gz) = 8eb8f46149927177f1bca43d0da8a54b52269493
-SHA512 (SDL2-2.0.4.tar.gz) = dd0a95878639856c0f4b8a579ace8071379ab64519fa139b22d3ed857a0f0db87a75bc8480c7207e02fbffd1fdbd448e3c0b882c451675b0e2f1a945af02e1d6
-Size (SDL2-2.0.4.tar.gz) = 4136230 bytes
-SHA1 (patch-src_audio_bsd_SDL__bsdaudio.c) = 51c2b74bf2294f95b832cd8df8efed87e664bc3d
+SHA1 (SDL2-2.0.5.tar.gz) = c4f87580630387796df4ac87c362b4f9a721457e
+RMD160 (SDL2-2.0.5.tar.gz) = 91283ce74bd451e83651910259cf226cae70e4bb
+SHA512 (SDL2-2.0.5.tar.gz) = 6401f5df08c08316c09bc6ac5b28345c5184bb25770baa5c94c0a582ae130ddf73bb736e44bb31f4e427c1ddbbeec4755a6a5f530b6b4c3d0f13ebc78ddc1750
+Size (SDL2-2.0.5.tar.gz) = 4209352 bytes
+SHA1 (patch-src_audio_bsd_SDL__bsdaudio.c) = cd4a2874aa5c6b2a584247239c78e05ab8aa255d
 SHA1 (patch-src_video_SDL__egl.c) = d65856e98b2e49dd364440372ce37679a6f2982b
 SHA1 (patch-src_video_x11_SDL__x11opengl.c) = a435634da8b8bd5e74a281b9a26e8fb8a294e56b

Index: pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c
diff -u pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c:1.2 pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c:1.3
--- pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c:1.2   Fri Nov 13 14:18:23 2015
+++ pkgsrc/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c       Fri Oct 28 19:13:44 2016
@@ -1,19 +1,18 @@
-$NetBSD: patch-src_audio_bsd_SDL__bsdaudio.c,v 1.2 2015/11/13 14:18:23 wiz Exp $
+$NetBSD: patch-src_audio_bsd_SDL__bsdaudio.c,v 1.3 2016/10/28 19:13:44 adam Exp $
 
 # Remove delay as there is already an inherent delay in writing audio.
 https://bugzilla.libsdl.org/show_bug.cgi?id=3177
 
---- src/audio/bsd/SDL_bsdaudio.c.orig  2014-03-16 02:31:44.000000000 +0000
+--- src/audio/bsd/SDL_bsdaudio.c.orig  2016-10-20 03:56:26.000000000 +0000
 +++ src/audio/bsd/SDL_bsdaudio.c
-@@ -181,11 +181,6 @@ BSDAUDIO_PlayDevice(_THIS)
-             perror("audio");
-             break;
-         }
--
--        if (p < written
+@@ -190,10 +190,6 @@ BSDAUDIO_PlayDevice(_THIS)
+         fprintf(stderr, "Wrote %d bytes of audio data\n", written);
+ #endif
+ 
+-        if (p < this->hidden->mixlen
 -            || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
 -            SDL_Delay(1);       /* Let a little CPU time go by */
 -        }
-     } while (p < written);
+     } while (p < this->hidden->mixlen);
  
      /* If timer synchronization is enabled, set the next write frame */



Home | Main Index | Thread Index | Old Index