From f91914c0cf264f6b3d31f93e1ed92064d0547d30 Mon Sep 17 00:00:00 2001
From: Alex Szpakowski
Date: Fri, 18 Mar 2016 22:33:50 -0300
Subject: [PATCH] Updated SDL to the latest hg revision.
---
CMakeLists.txt | 2 +-
libs/SDL2/.hg_archival.txt | 6 +-
libs/SDL2/.hgignore | 2 +
libs/SDL2/.hgtags | 1 +
libs/SDL2/CMakeLists.txt | 87 ++-
libs/SDL2/COPYING.txt | 2 +-
libs/SDL2/Makefile.psp | 1 +
libs/SDL2/README-SDL.txt | 4 +-
libs/SDL2/VisualC.html | 4 +-
libs/SDL2/WhatsNew.txt | 6 +-
.../SDL/SDL.xcodeproj/project.pbxproj | 10 +-
libs/SDL2/Xcode-iOS/Test/README | 11 -
.../SDL/pkg-support/resources/License.txt | 2 +-
.../src/org/libsdl/app/SDLActivity.java | 19 +-
libs/SDL2/build-scripts/checker-buildbot.sh | 6 +-
libs/SDL2/build-scripts/update-copyright.sh | 2 +-
libs/SDL2/cmake/sdlchecks.cmake | 1 -
libs/SDL2/configure | 77 ++-
libs/SDL2/configure.in | 53 +-
libs/SDL2/debian/changelog | 6 +
libs/SDL2/debian/copyright | 23 +-
libs/SDL2/debian/libsdl2-dev.install | 1 +
libs/SDL2/docs/README-android.md | 12 +-
libs/SDL2/docs/README-ios.md | 42 +-
libs/SDL2/docs/README-macosx.md | 2 +-
libs/SDL2/docs/README-raspberrypi.md | 2 +-
libs/SDL2/include/SDL.h | 2 +-
libs/SDL2/include/SDL_assert.h | 2 +-
libs/SDL2/include/SDL_atomic.h | 2 +-
libs/SDL2/include/SDL_audio.h | 2 +-
libs/SDL2/include/SDL_bits.h | 2 +-
libs/SDL2/include/SDL_blendmode.h | 2 +-
libs/SDL2/include/SDL_clipboard.h | 2 +-
libs/SDL2/include/SDL_config.h | 2 +-
libs/SDL2/include/SDL_config.h.cmake | 2 +-
libs/SDL2/include/SDL_config.h.in | 2 +-
libs/SDL2/include/SDL_config_android.h | 2 +-
libs/SDL2/include/SDL_config_iphoneos.h | 2 +-
libs/SDL2/include/SDL_config_macosx.h | 2 +-
libs/SDL2/include/SDL_config_minimal.h | 2 +-
libs/SDL2/include/SDL_config_pandora.h | 2 +-
libs/SDL2/include/SDL_config_psp.h | 2 +-
libs/SDL2/include/SDL_config_windows.h | 2 +-
libs/SDL2/include/SDL_config_winrt.h | 2 +-
libs/SDL2/include/SDL_config_wiz.h | 2 +-
libs/SDL2/include/SDL_copying.h | 2 +-
libs/SDL2/include/SDL_cpuinfo.h | 2 +-
libs/SDL2/include/SDL_egl.h | 2 +-
libs/SDL2/include/SDL_endian.h | 2 +-
libs/SDL2/include/SDL_error.h | 2 +-
libs/SDL2/include/SDL_events.h | 10 +-
libs/SDL2/include/SDL_filesystem.h | 2 +-
libs/SDL2/include/SDL_gamecontroller.h | 2 +-
libs/SDL2/include/SDL_gesture.h | 2 +-
libs/SDL2/include/SDL_haptic.h | 2 +-
libs/SDL2/include/SDL_hints.h | 2 +-
libs/SDL2/include/SDL_joystick.h | 2 +-
libs/SDL2/include/SDL_keyboard.h | 2 +-
libs/SDL2/include/SDL_keycode.h | 2 +-
libs/SDL2/include/SDL_loadso.h | 2 +-
libs/SDL2/include/SDL_log.h | 2 +-
libs/SDL2/include/SDL_main.h | 2 +-
libs/SDL2/include/SDL_messagebox.h | 2 +-
libs/SDL2/include/SDL_mouse.h | 2 +-
libs/SDL2/include/SDL_mutex.h | 2 +-
libs/SDL2/include/SDL_name.h | 2 +-
libs/SDL2/include/SDL_opengl.h | 2 +-
libs/SDL2/include/SDL_opengles.h | 2 +-
libs/SDL2/include/SDL_opengles2.h | 2 +-
libs/SDL2/include/SDL_pixels.h | 2 +-
libs/SDL2/include/SDL_platform.h | 2 +-
libs/SDL2/include/SDL_power.h | 2 +-
libs/SDL2/include/SDL_quit.h | 2 +-
libs/SDL2/include/SDL_rect.h | 2 +-
libs/SDL2/include/SDL_render.h | 28 +-
libs/SDL2/include/SDL_rwops.h | 2 +-
libs/SDL2/include/SDL_scancode.h | 2 +-
libs/SDL2/include/SDL_shape.h | 2 +-
libs/SDL2/include/SDL_stdinc.h | 2 +-
libs/SDL2/include/SDL_surface.h | 2 +-
libs/SDL2/include/SDL_system.h | 2 +-
libs/SDL2/include/SDL_syswm.h | 24 +-
libs/SDL2/include/SDL_test.h | 2 +-
libs/SDL2/include/SDL_test_assert.h | 2 +-
libs/SDL2/include/SDL_test_common.h | 2 +-
libs/SDL2/include/SDL_test_compare.h | 2 +-
libs/SDL2/include/SDL_test_crc32.h | 2 +-
libs/SDL2/include/SDL_test_font.h | 2 +-
libs/SDL2/include/SDL_test_fuzzer.h | 2 +-
libs/SDL2/include/SDL_test_harness.h | 2 +-
libs/SDL2/include/SDL_test_images.h | 2 +-
libs/SDL2/include/SDL_test_log.h | 2 +-
libs/SDL2/include/SDL_test_md5.h | 2 +-
libs/SDL2/include/SDL_test_random.h | 2 +-
libs/SDL2/include/SDL_thread.h | 2 +-
libs/SDL2/include/SDL_timer.h | 2 +-
libs/SDL2/include/SDL_touch.h | 2 +-
libs/SDL2/include/SDL_types.h | 2 +-
libs/SDL2/include/SDL_version.h | 2 +-
libs/SDL2/include/SDL_video.h | 164 +++++-
libs/SDL2/include/begin_code.h | 2 +-
libs/SDL2/include/close_code.h | 2 +-
libs/SDL2/premake/Linux/SDL_config_premake.h | 2 +-
libs/SDL2/premake/MinGW/SDL_config_premake.h | 2 +-
.../VisualC/VS2008/SDL_config_premake.h | 2 +-
.../VisualC/VS2010/SDL_config_premake.h | 2 +-
.../VisualC/VS2012/SDL_config_premake.h | 2 +-
.../premake/Xcode-iOS/SDL_config_premake.h | 2 +-
.../premake/Xcode/Xcode3/SDL_config_premake.h | 2 +-
.../premake/Xcode/Xcode4/SDL_config_premake.h | 2 +-
.../config/SDL_config_cygwin.template.h | 2 +-
.../config/SDL_config_iphoneos.template.h | 2 +-
.../config/SDL_config_linux.template.h | 2 +-
.../config/SDL_config_macosx.template.h | 2 +-
.../config/SDL_config_minimal.template.h | 2 +-
.../config/SDL_config_windows.template.h | 2 +-
libs/SDL2/premake/premake4.lua | 2 +-
libs/SDL2/premake/projects/SDL2.lua | 2 +-
libs/SDL2/premake/projects/SDL2main.lua | 2 +-
libs/SDL2/premake/projects/SDL2test.lua | 2 +-
libs/SDL2/premake/projects/accelerometer.lua | 2 +-
libs/SDL2/premake/projects/checkkeys.lua | 2 +-
libs/SDL2/premake/projects/fireworks.lua | 2 +-
libs/SDL2/premake/projects/happy.lua | 2 +-
libs/SDL2/premake/projects/keyboard.lua | 2 +-
libs/SDL2/premake/projects/loopwave.lua | 2 +-
libs/SDL2/premake/projects/mixer.lua | 2 +-
libs/SDL2/premake/projects/rectangles.lua | 2 +-
libs/SDL2/premake/projects/testatomic.lua | 2 +-
libs/SDL2/premake/projects/testaudioinfo.lua | 2 +-
libs/SDL2/premake/projects/testautomation.lua | 2 +-
libs/SDL2/premake/projects/testdraw2.lua | 2 +-
.../premake/projects/testdrawchessboard.lua | 2 +-
libs/SDL2/premake/projects/testerror.lua | 2 +-
libs/SDL2/premake/projects/testfile.lua | 2 +-
libs/SDL2/premake/projects/testfilesystem.lua | 2 +-
.../premake/projects/testgamecontroller.lua | 2 +-
libs/SDL2/premake/projects/testgesture.lua | 2 +-
libs/SDL2/premake/projects/testgl2.lua | 2 +-
libs/SDL2/premake/projects/testgles.lua | 2 +-
libs/SDL2/premake/projects/testhaptic.lua | 2 +-
libs/SDL2/premake/projects/testiconv.lua | 2 +-
libs/SDL2/premake/projects/testime.lua | 2 +-
.../premake/projects/testintersection.lua | 2 +-
libs/SDL2/premake/projects/testjoystick.lua | 2 +-
libs/SDL2/premake/projects/testkeys.lua | 2 +-
libs/SDL2/premake/projects/testloadso.lua | 2 +-
libs/SDL2/premake/projects/testlock.lua | 2 +-
libs/SDL2/premake/projects/testmessage.lua | 2 +-
libs/SDL2/premake/projects/testmultiaudio.lua | 2 +-
libs/SDL2/premake/projects/testnative.lua | 2 +-
libs/SDL2/premake/projects/testoverlay2.lua | 2 +-
libs/SDL2/premake/projects/testplatform.lua | 2 +-
libs/SDL2/premake/projects/testpower.lua | 2 +-
libs/SDL2/premake/projects/testrelative.lua | 2 +-
.../premake/projects/testrendercopyex.lua | 2 +-
.../premake/projects/testrendertarget.lua | 2 +-
libs/SDL2/premake/projects/testresample.lua | 2 +-
libs/SDL2/premake/projects/testrumble.lua | 2 +-
libs/SDL2/premake/projects/testscale.lua | 2 +-
libs/SDL2/premake/projects/testsem.lua | 2 +-
libs/SDL2/premake/projects/testshader.lua | 2 +-
libs/SDL2/premake/projects/testshape.lua | 2 +-
libs/SDL2/premake/projects/testsprite2.lua | 2 +-
.../premake/projects/testspriteminimal.lua | 2 +-
libs/SDL2/premake/projects/teststreaming.lua | 2 +-
libs/SDL2/premake/projects/testthread.lua | 2 +-
libs/SDL2/premake/projects/testtimer.lua | 2 +-
libs/SDL2/premake/projects/testver.lua | 2 +-
libs/SDL2/premake/projects/testwm2.lua | 2 +-
libs/SDL2/premake/projects/torturethread.lua | 2 +-
libs/SDL2/premake/projects/touch.lua | 2 +-
libs/SDL2/premake/util/sdl_check_compile.lua | 2 +-
.../premake/util/sdl_dependency_checkers.lua | 2 +-
libs/SDL2/premake/util/sdl_depends.lua | 2 +-
libs/SDL2/premake/util/sdl_file.lua | 2 +-
libs/SDL2/premake/util/sdl_gen_config.lua | 2 +-
libs/SDL2/premake/util/sdl_projects.lua | 2 +-
libs/SDL2/premake/util/sdl_string.lua | 2 +-
libs/SDL2/src/SDL.c | 2 +-
libs/SDL2/src/SDL_assert.c | 2 +-
libs/SDL2/src/SDL_assert_c.h | 2 +-
libs/SDL2/src/SDL_error.c | 2 +-
libs/SDL2/src/SDL_error_c.h | 2 +-
libs/SDL2/src/SDL_hints.c | 2 +-
libs/SDL2/src/SDL_internal.h | 2 +-
libs/SDL2/src/SDL_log.c | 2 +-
libs/SDL2/src/atomic/SDL_atomic.c | 2 +-
libs/SDL2/src/atomic/SDL_spinlock.c | 2 +-
libs/SDL2/src/audio/SDL_audio.c | 2 +-
libs/SDL2/src/audio/SDL_audio_c.h | 2 +-
libs/SDL2/src/audio/SDL_audiocvt.c | 2 +-
libs/SDL2/src/audio/SDL_audiodev.c | 2 +-
libs/SDL2/src/audio/SDL_audiodev_c.h | 2 +-
libs/SDL2/src/audio/SDL_audiomem.h | 2 +-
libs/SDL2/src/audio/SDL_audiotypecvt.c | 2 +-
libs/SDL2/src/audio/SDL_mixer.c | 2 +-
libs/SDL2/src/audio/SDL_sysaudio.h | 2 +-
libs/SDL2/src/audio/SDL_wave.c | 2 +-
libs/SDL2/src/audio/SDL_wave.h | 2 +-
libs/SDL2/src/audio/alsa/SDL_alsa_audio.c | 119 ++++-
libs/SDL2/src/audio/alsa/SDL_alsa_audio.h | 2 +-
.../SDL2/src/audio/android/SDL_androidaudio.c | 2 +-
.../SDL2/src/audio/android/SDL_androidaudio.h | 2 +-
libs/SDL2/src/audio/arts/SDL_artsaudio.c | 2 +-
libs/SDL2/src/audio/arts/SDL_artsaudio.h | 2 +-
libs/SDL2/src/audio/bsd/SDL_bsdaudio.c | 2 +-
libs/SDL2/src/audio/bsd/SDL_bsdaudio.h | 2 +-
libs/SDL2/src/audio/coreaudio/SDL_coreaudio.c | 2 +-
libs/SDL2/src/audio/coreaudio/SDL_coreaudio.h | 2 +-
.../src/audio/directsound/SDL_directsound.c | 2 +-
.../src/audio/directsound/SDL_directsound.h | 2 +-
libs/SDL2/src/audio/disk/SDL_diskaudio.c | 2 +-
libs/SDL2/src/audio/disk/SDL_diskaudio.h | 2 +-
libs/SDL2/src/audio/dsp/SDL_dspaudio.c | 2 +-
libs/SDL2/src/audio/dsp/SDL_dspaudio.h | 2 +-
libs/SDL2/src/audio/dummy/SDL_dummyaudio.c | 2 +-
libs/SDL2/src/audio/dummy/SDL_dummyaudio.h | 2 +-
.../audio/emscripten/SDL_emscriptenaudio.c | 2 +-
.../audio/emscripten/SDL_emscriptenaudio.h | 2 +-
libs/SDL2/src/audio/esd/SDL_esdaudio.c | 2 +-
libs/SDL2/src/audio/esd/SDL_esdaudio.h | 2 +-
libs/SDL2/src/audio/fusionsound/SDL_fsaudio.c | 2 +-
libs/SDL2/src/audio/fusionsound/SDL_fsaudio.h | 2 +-
libs/SDL2/src/audio/haiku/SDL_haikuaudio.cc | 2 +-
libs/SDL2/src/audio/haiku/SDL_haikuaudio.h | 2 +-
libs/SDL2/src/audio/nacl/SDL_naclaudio.c | 2 +-
libs/SDL2/src/audio/nacl/SDL_naclaudio.h | 2 +-
libs/SDL2/src/audio/nas/SDL_nasaudio.c | 2 +-
libs/SDL2/src/audio/nas/SDL_nasaudio.h | 2 +-
libs/SDL2/src/audio/paudio/SDL_paudio.c | 2 +-
libs/SDL2/src/audio/paudio/SDL_paudio.h | 2 +-
libs/SDL2/src/audio/psp/SDL_pspaudio.c | 17 +-
libs/SDL2/src/audio/psp/SDL_pspaudio.h | 2 +-
.../src/audio/pulseaudio/SDL_pulseaudio.c | 2 +-
.../src/audio/pulseaudio/SDL_pulseaudio.h | 2 +-
libs/SDL2/src/audio/qsa/SDL_qsa_audio.c | 2 +-
libs/SDL2/src/audio/qsa/SDL_qsa_audio.h | 2 +-
libs/SDL2/src/audio/sdlgenaudiocvt.pl | 2 +-
libs/SDL2/src/audio/sndio/SDL_sndioaudio.c | 2 +-
libs/SDL2/src/audio/sndio/SDL_sndioaudio.h | 2 +-
libs/SDL2/src/audio/sun/SDL_sunaudio.c | 2 +-
libs/SDL2/src/audio/sun/SDL_sunaudio.h | 2 +-
libs/SDL2/src/audio/winmm/SDL_winmm.c | 2 +-
libs/SDL2/src/audio/winmm/SDL_winmm.h | 2 +-
libs/SDL2/src/audio/xaudio2/SDL_xaudio2.c | 2 +-
libs/SDL2/src/audio/xaudio2/SDL_xaudio2.h | 2 +-
.../xaudio2/SDL_xaudio2_winrthelpers.cpp | 2 +-
.../audio/xaudio2/SDL_xaudio2_winrthelpers.h | 2 +-
libs/SDL2/src/core/android/SDL_android.c | 180 ++++---
libs/SDL2/src/core/android/SDL_android.h | 2 +-
libs/SDL2/src/core/linux/SDL_dbus.c | 2 +-
libs/SDL2/src/core/linux/SDL_dbus.h | 2 +-
libs/SDL2/src/core/linux/SDL_evdev.c | 2 +-
libs/SDL2/src/core/linux/SDL_evdev.h | 2 +-
libs/SDL2/src/core/linux/SDL_ibus.c | 2 +-
libs/SDL2/src/core/linux/SDL_ibus.h | 2 +-
libs/SDL2/src/core/linux/SDL_udev.c | 2 +-
libs/SDL2/src/core/linux/SDL_udev.h | 2 +-
libs/SDL2/src/core/windows/SDL_directx.h | 2 +-
libs/SDL2/src/core/windows/SDL_windows.c | 2 +-
libs/SDL2/src/core/windows/SDL_windows.h | 2 +-
libs/SDL2/src/core/windows/SDL_xinput.c | 2 +-
libs/SDL2/src/core/windows/SDL_xinput.h | 2 +-
.../src/core/winrt/SDL_winrtapp_common.cpp | 2 +-
.../SDL2/src/core/winrt/SDL_winrtapp_common.h | 2 +-
.../src/core/winrt/SDL_winrtapp_direct3d.cpp | 2 +-
.../src/core/winrt/SDL_winrtapp_direct3d.h | 2 +-
.../SDL2/src/core/winrt/SDL_winrtapp_xaml.cpp | 2 +-
libs/SDL2/src/core/winrt/SDL_winrtapp_xaml.h | 2 +-
libs/SDL2/src/cpuinfo/SDL_cpuinfo.c | 2 +-
libs/SDL2/src/dynapi/SDL_dynapi.c | 4 +-
libs/SDL2/src/dynapi/SDL_dynapi.h | 4 +-
libs/SDL2/src/dynapi/SDL_dynapi_overrides.h | 10 +-
libs/SDL2/src/dynapi/SDL_dynapi_procs.h | 10 +-
libs/SDL2/src/dynapi/gendynapi.pl | 2 +-
libs/SDL2/src/events/SDL_clipboardevents.c | 2 +-
libs/SDL2/src/events/SDL_clipboardevents_c.h | 2 +-
libs/SDL2/src/events/SDL_dropevents.c | 70 ++-
libs/SDL2/src/events/SDL_dropevents_c.h | 6 +-
libs/SDL2/src/events/SDL_events.c | 113 ++--
libs/SDL2/src/events/SDL_events_c.h | 2 +-
libs/SDL2/src/events/SDL_gesture.c | 2 +-
libs/SDL2/src/events/SDL_gesture_c.h | 2 +-
libs/SDL2/src/events/SDL_keyboard.c | 2 +-
libs/SDL2/src/events/SDL_keyboard_c.h | 2 +-
libs/SDL2/src/events/SDL_mouse.c | 2 +-
libs/SDL2/src/events/SDL_mouse_c.h | 2 +-
libs/SDL2/src/events/SDL_quit.c | 2 +-
libs/SDL2/src/events/SDL_sysevents.h | 2 +-
libs/SDL2/src/events/SDL_touch.c | 2 +-
libs/SDL2/src/events/SDL_touch_c.h | 2 +-
libs/SDL2/src/events/SDL_windowevents.c | 2 +-
libs/SDL2/src/events/SDL_windowevents_c.h | 2 +-
libs/SDL2/src/events/blank_cursor.h | 2 +-
libs/SDL2/src/events/default_cursor.h | 2 +-
libs/SDL2/src/events/scancodes_darwin.h | 2 +-
libs/SDL2/src/events/scancodes_linux.h | 2 +-
libs/SDL2/src/events/scancodes_windows.h | 2 +-
libs/SDL2/src/events/scancodes_xfree86.h | 2 +-
libs/SDL2/src/file/SDL_rwops.c | 2 +-
.../src/file/cocoa/SDL_rwopsbundlesupport.h | 2 +-
.../src/file/cocoa/SDL_rwopsbundlesupport.m | 2 +-
.../filesystem/android/SDL_sysfilesystem.c | 2 +-
.../src/filesystem/cocoa/SDL_sysfilesystem.m | 2 +-
.../src/filesystem/dummy/SDL_sysfilesystem.c | 2 +-
.../filesystem/emscripten/SDL_sysfilesystem.c | 2 +-
.../src/filesystem/haiku/SDL_sysfilesystem.cc | 2 +-
.../src/filesystem/nacl/SDL_sysfilesystem.c | 2 +-
.../src/filesystem/unix/SDL_sysfilesystem.c | 25 +-
.../filesystem/windows/SDL_sysfilesystem.c | 2 +-
.../filesystem/winrt/SDL_sysfilesystem.cpp | 2 +-
libs/SDL2/src/haptic/SDL_haptic.c | 2 +-
libs/SDL2/src/haptic/SDL_haptic_c.h | 2 +-
libs/SDL2/src/haptic/SDL_syshaptic.h | 2 +-
libs/SDL2/src/haptic/darwin/SDL_syshaptic.c | 2 +-
libs/SDL2/src/haptic/darwin/SDL_syshaptic_c.h | 2 +-
libs/SDL2/src/haptic/dummy/SDL_syshaptic.c | 2 +-
libs/SDL2/src/haptic/linux/SDL_syshaptic.c | 4 +-
.../src/haptic/windows/SDL_dinputhaptic.c | 2 +-
.../src/haptic/windows/SDL_dinputhaptic_c.h | 2 +-
.../src/haptic/windows/SDL_windowshaptic.c | 4 +-
.../src/haptic/windows/SDL_windowshaptic_c.h | 6 +-
.../src/haptic/windows/SDL_xinputhaptic.c | 6 +-
.../src/haptic/windows/SDL_xinputhaptic_c.h | 2 +-
libs/SDL2/src/joystick/SDL_gamecontroller.c | 3 +-
libs/SDL2/src/joystick/SDL_gamecontrollerdb.h | 9 +-
libs/SDL2/src/joystick/SDL_joystick.c | 2 +-
libs/SDL2/src/joystick/SDL_joystick_c.h | 2 +-
libs/SDL2/src/joystick/SDL_sysjoystick.h | 2 +-
.../src/joystick/android/SDL_sysjoystick.c | 5 +-
.../src/joystick/android/SDL_sysjoystick_c.h | 38 +-
libs/SDL2/src/joystick/bsd/SDL_sysjoystick.c | 2 +-
.../src/joystick/darwin/SDL_sysjoystick.c | 2 +-
.../src/joystick/darwin/SDL_sysjoystick_c.h | 2 +-
.../SDL2/src/joystick/dummy/SDL_sysjoystick.c | 2 +-
.../src/joystick/emscripten/SDL_sysjoystick.c | 2 +-
.../joystick/emscripten/SDL_sysjoystick_c.h | 32 +-
.../src/joystick/haiku/SDL_haikujoystick.cc | 2 +-
.../src/joystick/iphoneos/SDL_sysjoystick.m | 2 +-
.../src/joystick/iphoneos/SDL_sysjoystick_c.h | 2 +-
.../SDL2/src/joystick/linux/SDL_sysjoystick.c | 2 +-
.../src/joystick/linux/SDL_sysjoystick_c.h | 2 +-
libs/SDL2/src/joystick/psp/SDL_sysjoystick.c | 2 +-
.../src/joystick/windows/SDL_dinputjoystick.c | 2 +-
.../joystick/windows/SDL_dinputjoystick_c.h | 2 +-
.../src/joystick/windows/SDL_mmjoystick.c | 2 +-
.../joystick/windows/SDL_windowsjoystick.c | 2 +-
.../joystick/windows/SDL_windowsjoystick_c.h | 2 +-
.../src/joystick/windows/SDL_xinputjoystick.c | 4 +-
.../joystick/windows/SDL_xinputjoystick_c.h | 2 +-
libs/SDL2/src/libm/math_libm.h | 2 +-
libs/SDL2/src/loadso/dlopen/SDL_sysloadso.c | 2 +-
libs/SDL2/src/loadso/dummy/SDL_sysloadso.c | 2 +-
libs/SDL2/src/loadso/haiku/SDL_sysloadso.c | 2 +-
libs/SDL2/src/loadso/windows/SDL_sysloadso.c | 2 +-
libs/SDL2/src/main/android/SDL_android_main.c | 8 +-
libs/SDL2/src/main/haiku/SDL_BApp.h | 2 +-
libs/SDL2/src/main/haiku/SDL_BeApp.cc | 2 +-
libs/SDL2/src/main/haiku/SDL_BeApp.h | 2 +-
libs/SDL2/src/main/nacl/SDL_nacl_main.c | 2 +-
libs/SDL2/src/main/windows/version.rc | 2 +-
libs/SDL2/src/power/SDL_power.c | 2 +-
libs/SDL2/src/power/android/SDL_syspower.c | 2 +-
libs/SDL2/src/power/emscripten/SDL_syspower.c | 2 +-
libs/SDL2/src/power/haiku/SDL_syspower.c | 2 +-
libs/SDL2/src/power/linux/SDL_syspower.c | 2 +-
libs/SDL2/src/power/macosx/SDL_syspower.c | 2 +-
libs/SDL2/src/power/psp/SDL_syspower.c | 2 +-
libs/SDL2/src/power/uikit/SDL_syspower.h | 2 +-
libs/SDL2/src/power/uikit/SDL_syspower.m | 2 +-
libs/SDL2/src/power/windows/SDL_syspower.c | 2 +-
libs/SDL2/src/power/winrt/SDL_syspower.cpp | 2 +-
libs/SDL2/src/render/SDL_d3dmath.c | 2 +-
libs/SDL2/src/render/SDL_d3dmath.h | 2 +-
libs/SDL2/src/render/SDL_render.c | 34 +-
libs/SDL2/src/render/SDL_sysrender.h | 5 +-
libs/SDL2/src/render/SDL_yuv_mmx.c | 2 +-
libs/SDL2/src/render/SDL_yuv_sw.c | 2 +-
libs/SDL2/src/render/SDL_yuv_sw_c.h | 2 +-
.../SDL2/src/render/direct3d/SDL_render_d3d.c | 2 +-
.../src/render/direct3d11/SDL_render_d3d11.c | 2 +-
.../render/direct3d11/SDL_render_winrt.cpp | 2 +-
.../src/render/direct3d11/SDL_render_winrt.h | 2 +-
libs/SDL2/src/render/opengl/SDL_glfuncs.h | 2 +-
libs/SDL2/src/render/opengl/SDL_render_gl.c | 2 +-
libs/SDL2/src/render/opengl/SDL_shaders_gl.c | 2 +-
libs/SDL2/src/render/opengl/SDL_shaders_gl.h | 2 +-
libs/SDL2/src/render/opengles/SDL_glesfuncs.h | 2 +-
.../src/render/opengles/SDL_render_gles.c | 2 +-
.../src/render/opengles2/SDL_gles2funcs.h | 2 +-
.../src/render/opengles2/SDL_render_gles2.c | 2 +-
.../src/render/opengles2/SDL_shaders_gles2.c | 2 +-
.../src/render/opengles2/SDL_shaders_gles2.h | 2 +-
libs/SDL2/src/render/psp/SDL_render_psp.c | 2 +-
.../src/render/software/SDL_blendfillrect.c | 2 +-
.../src/render/software/SDL_blendfillrect.h | 2 +-
libs/SDL2/src/render/software/SDL_blendline.c | 2 +-
libs/SDL2/src/render/software/SDL_blendline.h | 2 +-
.../SDL2/src/render/software/SDL_blendpoint.c | 2 +-
.../SDL2/src/render/software/SDL_blendpoint.h | 2 +-
libs/SDL2/src/render/software/SDL_draw.h | 2 +-
libs/SDL2/src/render/software/SDL_drawline.c | 2 +-
libs/SDL2/src/render/software/SDL_drawline.h | 2 +-
libs/SDL2/src/render/software/SDL_drawpoint.c | 2 +-
libs/SDL2/src/render/software/SDL_drawpoint.h | 2 +-
libs/SDL2/src/render/software/SDL_render_sw.c | 2 +-
.../src/render/software/SDL_render_sw_c.h | 2 +-
libs/SDL2/src/render/software/SDL_rotate.h | 2 +-
libs/SDL2/src/stdlib/SDL_getenv.c | 2 +-
libs/SDL2/src/stdlib/SDL_iconv.c | 2 +-
libs/SDL2/src/stdlib/SDL_malloc.c | 2 +-
libs/SDL2/src/stdlib/SDL_qsort.c | 481 +++++++++--------
libs/SDL2/src/stdlib/SDL_stdlib.c | 2 +-
libs/SDL2/src/stdlib/SDL_string.c | 2 +-
libs/SDL2/src/test/SDL_test_assert.c | 2 +-
libs/SDL2/src/test/SDL_test_common.c | 20 +-
libs/SDL2/src/test/SDL_test_compare.c | 4 +-
libs/SDL2/src/test/SDL_test_crc32.c | 2 +-
libs/SDL2/src/test/SDL_test_font.c | 2 +-
libs/SDL2/src/test/SDL_test_fuzzer.c | 2 +-
libs/SDL2/src/test/SDL_test_harness.c | 2 +-
libs/SDL2/src/test/SDL_test_imageBlit.c | 2 +-
libs/SDL2/src/test/SDL_test_imageBlitBlend.c | 2 +-
libs/SDL2/src/test/SDL_test_imageFace.c | 2 +-
libs/SDL2/src/test/SDL_test_imagePrimitives.c | 2 +-
.../src/test/SDL_test_imagePrimitivesBlend.c | 2 +-
libs/SDL2/src/test/SDL_test_log.c | 2 +-
libs/SDL2/src/test/SDL_test_md5.c | 2 +-
libs/SDL2/src/test/SDL_test_random.c | 2 +-
libs/SDL2/src/thread/SDL_systhread.h | 2 +-
libs/SDL2/src/thread/SDL_thread.c | 2 +-
libs/SDL2/src/thread/SDL_thread_c.h | 2 +-
libs/SDL2/src/thread/generic/SDL_syscond.c | 2 +-
libs/SDL2/src/thread/generic/SDL_sysmutex.c | 2 +-
libs/SDL2/src/thread/generic/SDL_sysmutex_c.h | 2 +-
libs/SDL2/src/thread/generic/SDL_syssem.c | 2 +-
libs/SDL2/src/thread/generic/SDL_systhread.c | 2 +-
.../SDL2/src/thread/generic/SDL_systhread_c.h | 2 +-
libs/SDL2/src/thread/generic/SDL_systls.c | 2 +-
libs/SDL2/src/thread/psp/SDL_syscond.c | 2 +-
libs/SDL2/src/thread/psp/SDL_sysmutex.c | 2 +-
libs/SDL2/src/thread/psp/SDL_sysmutex_c.h | 2 +-
libs/SDL2/src/thread/psp/SDL_syssem.c | 2 +-
libs/SDL2/src/thread/psp/SDL_systhread.c | 2 +-
libs/SDL2/src/thread/psp/SDL_systhread_c.h | 2 +-
libs/SDL2/src/thread/pthread/SDL_syscond.c | 2 +-
libs/SDL2/src/thread/pthread/SDL_sysmutex.c | 2 +-
libs/SDL2/src/thread/pthread/SDL_sysmutex_c.h | 2 +-
libs/SDL2/src/thread/pthread/SDL_syssem.c | 2 +-
libs/SDL2/src/thread/pthread/SDL_systhread.c | 2 +-
.../SDL2/src/thread/pthread/SDL_systhread_c.h | 2 +-
libs/SDL2/src/thread/pthread/SDL_systls.c | 2 +-
libs/SDL2/src/thread/stdcpp/SDL_syscond.cpp | 2 +-
libs/SDL2/src/thread/stdcpp/SDL_sysmutex.cpp | 2 +-
libs/SDL2/src/thread/stdcpp/SDL_sysmutex_c.h | 2 +-
libs/SDL2/src/thread/stdcpp/SDL_systhread.cpp | 2 +-
libs/SDL2/src/thread/stdcpp/SDL_systhread_c.h | 2 +-
libs/SDL2/src/thread/windows/SDL_sysmutex.c | 2 +-
libs/SDL2/src/thread/windows/SDL_syssem.c | 2 +-
libs/SDL2/src/thread/windows/SDL_systhread.c | 47 +-
.../SDL2/src/thread/windows/SDL_systhread_c.h | 2 +-
libs/SDL2/src/thread/windows/SDL_systls.c | 2 +-
libs/SDL2/src/timer/SDL_timer.c | 45 +-
libs/SDL2/src/timer/SDL_timer_c.h | 2 +-
libs/SDL2/src/timer/dummy/SDL_systimer.c | 2 +-
libs/SDL2/src/timer/haiku/SDL_systimer.c | 2 +-
libs/SDL2/src/timer/psp/SDL_systimer.c | 2 +-
libs/SDL2/src/timer/unix/SDL_systimer.c | 2 +-
libs/SDL2/src/timer/windows/SDL_systimer.c | 6 +-
libs/SDL2/src/video/SDL_RLEaccel.c | 2 +-
libs/SDL2/src/video/SDL_RLEaccel_c.h | 2 +-
libs/SDL2/src/video/SDL_blit.c | 2 +-
libs/SDL2/src/video/SDL_blit.h | 2 +-
libs/SDL2/src/video/SDL_blit_0.c | 2 +-
libs/SDL2/src/video/SDL_blit_1.c | 2 +-
libs/SDL2/src/video/SDL_blit_A.c | 2 +-
libs/SDL2/src/video/SDL_blit_N.c | 2 +-
libs/SDL2/src/video/SDL_blit_auto.c | 2 +-
libs/SDL2/src/video/SDL_blit_auto.h | 2 +-
libs/SDL2/src/video/SDL_blit_copy.c | 2 +-
libs/SDL2/src/video/SDL_blit_copy.h | 2 +-
libs/SDL2/src/video/SDL_blit_slow.c | 2 +-
libs/SDL2/src/video/SDL_blit_slow.h | 2 +-
libs/SDL2/src/video/SDL_bmp.c | 2 +-
libs/SDL2/src/video/SDL_clipboard.c | 2 +-
libs/SDL2/src/video/SDL_egl.c | 2 +-
libs/SDL2/src/video/SDL_egl_c.h | 2 +-
libs/SDL2/src/video/SDL_fillrect.c | 2 +-
libs/SDL2/src/video/SDL_pixels.c | 2 +-
libs/SDL2/src/video/SDL_pixels_c.h | 2 +-
libs/SDL2/src/video/SDL_rect.c | 2 +-
libs/SDL2/src/video/SDL_rect_c.h | 2 +-
libs/SDL2/src/video/SDL_shape.c | 2 +-
libs/SDL2/src/video/SDL_shape_internals.h | 2 +-
libs/SDL2/src/video/SDL_stretch.c | 2 +-
libs/SDL2/src/video/SDL_surface.c | 2 +-
libs/SDL2/src/video/SDL_sysvideo.h | 14 +-
libs/SDL2/src/video/SDL_video.c | 140 ++++-
.../src/video/android/SDL_androidclipboard.c | 2 +-
.../src/video/android/SDL_androidclipboard.h | 2 +-
.../src/video/android/SDL_androidevents.c | 2 +-
.../src/video/android/SDL_androidevents.h | 2 +-
libs/SDL2/src/video/android/SDL_androidgl.c | 2 +-
.../src/video/android/SDL_androidkeyboard.c | 2 +-
.../src/video/android/SDL_androidkeyboard.h | 2 +-
.../src/video/android/SDL_androidmessagebox.c | 2 +-
.../src/video/android/SDL_androidmessagebox.h | 2 +-
.../SDL2/src/video/android/SDL_androidmouse.c | 18 +-
.../SDL2/src/video/android/SDL_androidmouse.h | 3 +-
.../SDL2/src/video/android/SDL_androidtouch.c | 4 +-
.../SDL2/src/video/android/SDL_androidtouch.h | 2 +-
.../SDL2/src/video/android/SDL_androidvideo.c | 5 +-
.../SDL2/src/video/android/SDL_androidvideo.h | 2 +-
.../src/video/android/SDL_androidwindow.c | 2 +-
.../src/video/android/SDL_androidwindow.h | 2 +-
.../SDL2/src/video/cocoa/SDL_cocoaclipboard.h | 2 +-
.../SDL2/src/video/cocoa/SDL_cocoaclipboard.m | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoaevents.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoaevents.m | 4 +-
libs/SDL2/src/video/cocoa/SDL_cocoakeyboard.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoakeyboard.m | 2 +-
.../src/video/cocoa/SDL_cocoamessagebox.h | 2 +-
.../src/video/cocoa/SDL_cocoamessagebox.m | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoamodes.h | 4 +-
libs/SDL2/src/video/cocoa/SDL_cocoamodes.m | 56 +-
libs/SDL2/src/video/cocoa/SDL_cocoamouse.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoamouse.m | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoamousetap.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoamousetap.m | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoaopengl.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoaopengl.m | 4 +-
libs/SDL2/src/video/cocoa/SDL_cocoashape.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoashape.m | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoavideo.h | 2 +-
libs/SDL2/src/video/cocoa/SDL_cocoavideo.m | 5 +-
libs/SDL2/src/video/cocoa/SDL_cocoawindow.h | 3 +-
libs/SDL2/src/video/cocoa/SDL_cocoawindow.m | 30 +-
.../SDL2/src/video/directfb/SDL_DirectFB_WM.c | 2 +-
.../SDL2/src/video/directfb/SDL_DirectFB_WM.h | 2 +-
.../src/video/directfb/SDL_DirectFB_dyn.c | 2 +-
.../src/video/directfb/SDL_DirectFB_dyn.h | 2 +-
.../src/video/directfb/SDL_DirectFB_events.c | 2 +-
.../src/video/directfb/SDL_DirectFB_events.h | 2 +-
.../src/video/directfb/SDL_DirectFB_modes.c | 2 +-
.../src/video/directfb/SDL_DirectFB_modes.h | 2 +-
.../src/video/directfb/SDL_DirectFB_mouse.c | 2 +-
.../src/video/directfb/SDL_DirectFB_mouse.h | 2 +-
.../src/video/directfb/SDL_DirectFB_opengl.c | 2 +-
.../src/video/directfb/SDL_DirectFB_opengl.h | 2 +-
.../src/video/directfb/SDL_DirectFB_render.c | 2 +-
.../src/video/directfb/SDL_DirectFB_render.h | 2 +-
.../src/video/directfb/SDL_DirectFB_shape.c | 2 +-
.../src/video/directfb/SDL_DirectFB_shape.h | 2 +-
.../src/video/directfb/SDL_DirectFB_video.c | 3 +-
.../src/video/directfb/SDL_DirectFB_video.h | 2 +-
.../src/video/directfb/SDL_DirectFB_window.c | 15 +-
.../src/video/directfb/SDL_DirectFB_window.h | 3 +-
libs/SDL2/src/video/dummy/SDL_nullevents.c | 2 +-
libs/SDL2/src/video/dummy/SDL_nullevents_c.h | 2 +-
.../src/video/dummy/SDL_nullframebuffer.c | 2 +-
.../src/video/dummy/SDL_nullframebuffer_c.h | 2 +-
libs/SDL2/src/video/dummy/SDL_nullvideo.c | 2 +-
libs/SDL2/src/video/dummy/SDL_nullvideo.h | 2 +-
.../video/emscripten/SDL_emscriptenevents.c | 2 +-
.../video/emscripten/SDL_emscriptenevents.h | 2 +-
.../emscripten/SDL_emscriptenframebuffer.c | 2 +-
.../emscripten/SDL_emscriptenframebuffer.h | 2 +-
.../video/emscripten/SDL_emscriptenmouse.c | 6 +-
.../video/emscripten/SDL_emscriptenmouse.h | 2 +-
.../video/emscripten/SDL_emscriptenopengles.c | 2 +-
.../video/emscripten/SDL_emscriptenopengles.h | 2 +-
.../video/emscripten/SDL_emscriptenvideo.c | 2 +-
.../video/emscripten/SDL_emscriptenvideo.h | 2 +-
libs/SDL2/src/video/haiku/SDL_BWin.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bclipboard.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bclipboard.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bevents.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bevents.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bframebuffer.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bframebuffer.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bkeyboard.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bkeyboard.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bmodes.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bmodes.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bopengl.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bopengl.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bvideo.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bvideo.h | 2 +-
libs/SDL2/src/video/haiku/SDL_bwindow.cc | 2 +-
libs/SDL2/src/video/haiku/SDL_bwindow.h | 2 +-
libs/SDL2/src/video/mir/SDL_mirdyn.c | 17 +-
libs/SDL2/src/video/mir/SDL_mirdyn.h | 8 +-
libs/SDL2/src/video/mir/SDL_mirevents.c | 216 ++++----
libs/SDL2/src/video/mir/SDL_mirevents.h | 4 +-
libs/SDL2/src/video/mir/SDL_mirframebuffer.c | 30 +-
libs/SDL2/src/video/mir/SDL_mirframebuffer.h | 2 +-
libs/SDL2/src/video/mir/SDL_mirmouse.c | 151 +++++-
libs/SDL2/src/video/mir/SDL_mirmouse.h | 2 +-
libs/SDL2/src/video/mir/SDL_miropengl.c | 2 +-
libs/SDL2/src/video/mir/SDL_miropengl.h | 2 +-
libs/SDL2/src/video/mir/SDL_mirsym.h | 89 +++-
libs/SDL2/src/video/mir/SDL_mirvideo.c | 38 +-
libs/SDL2/src/video/mir/SDL_mirvideo.h | 9 +-
libs/SDL2/src/video/mir/SDL_mirwindow.c | 191 +++++--
libs/SDL2/src/video/mir/SDL_mirwindow.h | 25 +-
libs/SDL2/src/video/nacl/SDL_naclevents.c | 2 +-
libs/SDL2/src/video/nacl/SDL_naclevents_c.h | 2 +-
libs/SDL2/src/video/nacl/SDL_naclglue.c | 2 +-
libs/SDL2/src/video/nacl/SDL_naclopengles.c | 2 +-
libs/SDL2/src/video/nacl/SDL_naclopengles.h | 2 +-
libs/SDL2/src/video/nacl/SDL_naclvideo.c | 2 +-
libs/SDL2/src/video/nacl/SDL_naclvideo.h | 2 +-
libs/SDL2/src/video/nacl/SDL_naclwindow.c | 2 +-
libs/SDL2/src/video/nacl/SDL_naclwindow.h | 2 +-
libs/SDL2/src/video/pandora/SDL_pandora.c | 2 +-
libs/SDL2/src/video/pandora/SDL_pandora.h | 2 +-
.../src/video/pandora/SDL_pandora_events.c | 2 +-
.../src/video/pandora/SDL_pandora_events.h | 2 +-
libs/SDL2/src/video/psp/SDL_pspevents.c | 2 +-
libs/SDL2/src/video/psp/SDL_pspevents_c.h | 2 +-
libs/SDL2/src/video/psp/SDL_pspgl.c | 2 +-
libs/SDL2/src/video/psp/SDL_pspgl_c.h | 2 +-
libs/SDL2/src/video/psp/SDL_pspmouse.c | 2 +-
libs/SDL2/src/video/psp/SDL_pspmouse_c.h | 2 +-
libs/SDL2/src/video/psp/SDL_pspvideo.c | 2 +-
libs/SDL2/src/video/psp/SDL_pspvideo.h | 2 +-
libs/SDL2/src/video/raspberry/SDL_rpievents.c | 2 +-
.../src/video/raspberry/SDL_rpievents_c.h | 2 +-
libs/SDL2/src/video/raspberry/SDL_rpimouse.c | 11 +-
libs/SDL2/src/video/raspberry/SDL_rpimouse.h | 2 +-
.../src/video/raspberry/SDL_rpiopengles.c | 2 +-
.../src/video/raspberry/SDL_rpiopengles.h | 2 +-
libs/SDL2/src/video/raspberry/SDL_rpivideo.c | 2 +-
libs/SDL2/src/video/raspberry/SDL_rpivideo.h | 2 +-
libs/SDL2/src/video/sdlgenblit.pl | 2 +-
.../src/video/uikit/SDL_uikitappdelegate.h | 2 +-
.../src/video/uikit/SDL_uikitappdelegate.m | 8 +-
.../SDL2/src/video/uikit/SDL_uikitclipboard.h | 35 ++
.../SDL2/src/video/uikit/SDL_uikitclipboard.m | 99 ++++
libs/SDL2/src/video/uikit/SDL_uikitevents.h | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitevents.m | 2 +-
.../src/video/uikit/SDL_uikitmessagebox.h | 2 +-
.../src/video/uikit/SDL_uikitmessagebox.m | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitmodes.h | 3 +-
libs/SDL2/src/video/uikit/SDL_uikitmodes.m | 22 +-
libs/SDL2/src/video/uikit/SDL_uikitopengles.h | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitopengles.m | 2 +-
.../src/video/uikit/SDL_uikitopenglview.h | 2 +-
.../src/video/uikit/SDL_uikitopenglview.m | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitvideo.h | 8 +-
libs/SDL2/src/video/uikit/SDL_uikitvideo.m | 116 ++--
libs/SDL2/src/video/uikit/SDL_uikitview.h | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitview.m | 2 +-
.../src/video/uikit/SDL_uikitviewcontroller.h | 32 +-
.../src/video/uikit/SDL_uikitviewcontroller.m | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitwindow.h | 2 +-
libs/SDL2/src/video/uikit/SDL_uikitwindow.m | 2 +-
libs/SDL2/src/video/uikit/keyinfotable.h | 2 +-
.../src/video/vivante/SDL_vivanteopengles.c | 2 +-
.../src/video/vivante/SDL_vivanteopengles.h | 2 +-
.../src/video/vivante/SDL_vivanteplatform.c | 2 +-
.../src/video/vivante/SDL_vivanteplatform.h | 2 +-
.../SDL2/src/video/vivante/SDL_vivantevideo.c | 8 +-
.../SDL2/src/video/vivante/SDL_vivantevideo.h | 2 +-
libs/SDL2/src/video/wayland/SDL_waylanddyn.c | 19 +-
libs/SDL2/src/video/wayland/SDL_waylanddyn.h | 8 +-
.../src/video/wayland/SDL_waylandevents.c | 6 +-
.../src/video/wayland/SDL_waylandevents_c.h | 2 +-
.../SDL2/src/video/wayland/SDL_waylandmouse.c | 23 +-
.../SDL2/src/video/wayland/SDL_waylandmouse.h | 2 +-
.../src/video/wayland/SDL_waylandopengles.c | 2 +-
.../src/video/wayland/SDL_waylandopengles.h | 2 +-
libs/SDL2/src/video/wayland/SDL_waylandsym.h | 21 +-
.../SDL2/src/video/wayland/SDL_waylandtouch.c | 2 +-
.../SDL2/src/video/wayland/SDL_waylandtouch.h | 2 +-
.../SDL2/src/video/wayland/SDL_waylandvideo.c | 3 +-
.../SDL2/src/video/wayland/SDL_waylandvideo.h | 3 +-
.../src/video/wayland/SDL_waylandwindow.c | 2 +-
.../src/video/wayland/SDL_waylandwindow.h | 2 +-
libs/SDL2/src/video/windows/SDL_msctf.h | 2 +-
libs/SDL2/src/video/windows/SDL_vkeys.h | 2 +-
.../src/video/windows/SDL_windowsclipboard.c | 2 +-
.../src/video/windows/SDL_windowsclipboard.h | 2 +-
.../src/video/windows/SDL_windowsevents.c | 25 +-
.../src/video/windows/SDL_windowsevents.h | 2 +-
.../video/windows/SDL_windowsframebuffer.c | 2 +-
.../video/windows/SDL_windowsframebuffer.h | 2 +-
.../src/video/windows/SDL_windowskeyboard.c | 2 +-
.../src/video/windows/SDL_windowskeyboard.h | 2 +-
.../src/video/windows/SDL_windowsmessagebox.c | 2 +-
.../src/video/windows/SDL_windowsmessagebox.h | 2 +-
.../SDL2/src/video/windows/SDL_windowsmodes.c | 121 +++--
.../SDL2/src/video/windows/SDL_windowsmodes.h | 3 +-
.../SDL2/src/video/windows/SDL_windowsmouse.c | 2 +-
.../SDL2/src/video/windows/SDL_windowsmouse.h | 2 +-
.../src/video/windows/SDL_windowsopengl.c | 2 +-
.../src/video/windows/SDL_windowsopengl.h | 2 +-
.../src/video/windows/SDL_windowsopengles.c | 2 +-
.../src/video/windows/SDL_windowsopengles.h | 2 +-
.../SDL2/src/video/windows/SDL_windowsshape.c | 2 +-
.../SDL2/src/video/windows/SDL_windowsshape.h | 2 +-
.../SDL2/src/video/windows/SDL_windowsvideo.c | 4 +-
.../SDL2/src/video/windows/SDL_windowsvideo.h | 2 +-
.../src/video/windows/SDL_windowswindow.c | 35 +-
.../src/video/windows/SDL_windowswindow.h | 3 +-
libs/SDL2/src/video/windows/wmmsg.h | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtevents.cpp | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtevents_c.h | 2 +-
.../src/video/winrt/SDL_winrtkeyboard.cpp | 2 +-
.../src/video/winrt/SDL_winrtmessagebox.cpp | 2 +-
.../src/video/winrt/SDL_winrtmessagebox.h | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtmouse.cpp | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtmouse_c.h | 2 +-
.../src/video/winrt/SDL_winrtopengles.cpp | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtopengles.h | 2 +-
.../src/video/winrt/SDL_winrtpointerinput.cpp | 2 +-
libs/SDL2/src/video/winrt/SDL_winrtvideo.cpp | 6 +-
.../SDL2/src/video/winrt/SDL_winrtvideo_cpp.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11clipboard.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11clipboard.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11dyn.c | 17 +-
libs/SDL2/src/video/x11/SDL_x11dyn.h | 8 +-
libs/SDL2/src/video/x11/SDL_x11events.c | 141 +++--
libs/SDL2/src/video/x11/SDL_x11events.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11framebuffer.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11framebuffer.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11keyboard.c | 3 +-
libs/SDL2/src/video/x11/SDL_x11keyboard.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11messagebox.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11messagebox.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11modes.c | 55 +-
libs/SDL2/src/video/x11/SDL_x11modes.h | 3 +-
libs/SDL2/src/video/x11/SDL_x11mouse.c | 59 ++-
libs/SDL2/src/video/x11/SDL_x11mouse.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11opengl.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11opengl.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11opengles.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11opengles.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11shape.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11shape.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11sym.h | 13 +-
libs/SDL2/src/video/x11/SDL_x11touch.c | 2 +-
libs/SDL2/src/video/x11/SDL_x11touch.h | 2 +-
libs/SDL2/src/video/x11/SDL_x11video.c | 19 +-
libs/SDL2/src/video/x11/SDL_x11video.h | 14 +-
libs/SDL2/src/video/x11/SDL_x11window.c | 154 +++++-
libs/SDL2/src/video/x11/SDL_x11window.h | 11 +-
libs/SDL2/src/video/x11/SDL_x11xinput2.c | 12 +-
libs/SDL2/src/video/x11/SDL_x11xinput2.h | 2 +-
libs/SDL2/src/video/x11/edid-parse.c | 4 +-
libs/SDL2/src/video/x11/imKStoUCS.c | 496 +++++++++---------
libs/SDL2/src/video/x11/imKStoUCS.h | 39 +-
libs/SDL2/test/Makefile.in | 8 +
libs/SDL2/test/checkkeys.c | 2 +-
libs/SDL2/test/controllermap.c | 2 +-
libs/SDL2/test/loopwave.c | 2 +-
libs/SDL2/test/loopwavequeue.c | 2 +-
libs/SDL2/test/testatomic.c | 14 +-
libs/SDL2/test/testaudiohotplug.c | 2 +-
libs/SDL2/test/testaudioinfo.c | 2 +-
libs/SDL2/test/testautomation.c | 2 +-
libs/SDL2/test/testbounds.c | 39 ++
libs/SDL2/test/testdisplayinfo.c | 9 +-
libs/SDL2/test/testdraw2.c | 2 +-
libs/SDL2/test/testdrawchessboard.c | 2 +-
libs/SDL2/test/testdropfile.c | 11 +-
libs/SDL2/test/testerror.c | 2 +-
libs/SDL2/test/testfile.c | 2 +-
libs/SDL2/test/testfilesystem.c | 2 +-
libs/SDL2/test/testgamecontroller.c | 2 +-
libs/SDL2/test/testgesture.c | 2 +-
libs/SDL2/test/testgl2.c | 2 +-
libs/SDL2/test/testgles.c | 2 +-
libs/SDL2/test/testgles2.c | 2 +-
libs/SDL2/test/testhotplug.c | 2 +-
libs/SDL2/test/testiconv.c | 2 +-
libs/SDL2/test/testime.c | 38 +-
libs/SDL2/test/testintersections.c | 2 +-
libs/SDL2/test/testjoystick.c | 2 +-
libs/SDL2/test/testkeys.c | 2 +-
libs/SDL2/test/testloadso.c | 2 +-
libs/SDL2/test/testlock.c | 14 +-
libs/SDL2/test/testmessage.c | 2 +-
libs/SDL2/test/testmultiaudio.c | 13 +-
libs/SDL2/test/testnative.c | 2 +-
libs/SDL2/test/testnative.h | 2 +-
libs/SDL2/test/testnativew32.c | 2 +-
libs/SDL2/test/testnativex11.c | 2 +-
libs/SDL2/test/testoverlay2.c | 2 +-
libs/SDL2/test/testplatform.c | 2 +-
libs/SDL2/test/testpower.c | 2 +-
libs/SDL2/test/testqsort.c | 84 +++
libs/SDL2/test/testrelative.c | 2 +-
libs/SDL2/test/testrendercopyex.c | 2 +-
libs/SDL2/test/testrendertarget.c | 2 +-
libs/SDL2/test/testresample.c | 2 +-
libs/SDL2/test/testrumble.c | 2 +-
libs/SDL2/test/testscale.c | 2 +-
libs/SDL2/test/testsem.c | 2 +-
libs/SDL2/test/testshader.c | 2 +-
libs/SDL2/test/testshape.c | 2 +-
libs/SDL2/test/testsprite2.c | 2 +-
libs/SDL2/test/testspriteminimal.c | 2 +-
libs/SDL2/test/teststreaming.c | 2 +-
libs/SDL2/test/testthread.c | 2 +-
libs/SDL2/test/testtimer.c | 2 +-
libs/SDL2/test/testver.c | 2 +-
libs/SDL2/test/testviewport.c | 2 +-
libs/SDL2/test/testwm2.c | 2 +-
libs/SDL2/test/torturethread.c | 10 +-
811 files changed, 4116 insertions(+), 2164 deletions(-)
mode change 100755 => 100644 libs/SDL2/CMakeLists.txt
create mode 100644 libs/SDL2/src/video/uikit/SDL_uikitclipboard.h
create mode 100644 libs/SDL2/src/video/uikit/SDL_uikitclipboard.m
create mode 100644 libs/SDL2/test/testbounds.c
create mode 100644 libs/SDL2/test/testqsort.c
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68fce08e..5eb234ab 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -137,7 +137,7 @@ set(MEGA_LIBVORBIS_VER "1.3.5")
set(MEGA_LIBTHEORA_VER "1.1.1")
set(MEGA_MPG123_VER "1.15.3")
set(MEGA_FREETYPE_VER "2.6.2")
-set(MEGA_SDL2_VER "2.0.3-e05d46c27ce3")
+set(MEGA_SDL2_VER "2.0.4-6b6ded44e6e0")
set(MEGA_OPENAL_VER "1.17.0")
set(MEGA_MODPLUG_VER "0.8.8.4")
diff --git a/libs/SDL2/.hg_archival.txt b/libs/SDL2/.hg_archival.txt
index a7783adb..362f7ee4 100644
--- a/libs/SDL2/.hg_archival.txt
+++ b/libs/SDL2/.hg_archival.txt
@@ -1,5 +1,5 @@
repo: 74212992fb0868a6929180cd74dd67e38507340a
-node: e05d46c27ce3d91d427f74ae0ca8d900d83cbcad
+node: 6b6ded44e6e00c90fa941ab89ad4c15ed47f819a
branch: default
-latesttag: release-2.0.3
-latesttagdistance: 1235
+latesttag: release-2.0.4
+latesttagdistance: 117
diff --git a/libs/SDL2/.hgignore b/libs/SDL2/.hgignore
index 55c06679..84122f80 100644
--- a/libs/SDL2/.hgignore
+++ b/libs/SDL2/.hgignore
@@ -116,8 +116,10 @@ test/testtimer
test/testver
test/testviewport
test/testwm2
+test/testbounds
test/torturethread
test/testdisplayinfo
+test/testqsort
test/*.exe
test/*.dSYM
buildbot
diff --git a/libs/SDL2/.hgtags b/libs/SDL2/.hgtags
index 21648b7f..899f4f77 100644
--- a/libs/SDL2/.hgtags
+++ b/libs/SDL2/.hgtags
@@ -28,3 +28,4 @@ be2102f000d0d2d9bab75e9703a1d503d0f6bb33 release-2.0.2
f285b9487756ff681f76c85644222c03a7bfa1c7 release-2.0.3
f285b9487756ff681f76c85644222c03a7bfa1c7 release-2.0.3
704a0bfecf754e4e1383f83c7d5118b00cae26ea release-2.0.3
+e12c387305129c847b3928a123300b113782fe3f release-2.0.4
diff --git a/libs/SDL2/CMakeLists.txt b/libs/SDL2/CMakeLists.txt
old mode 100755
new mode 100644
index d4b2804e..54571ff0
--- a/libs/SDL2/CMakeLists.txt
+++ b/libs/SDL2/CMakeLists.txt
@@ -4,6 +4,17 @@ endif()
cmake_minimum_required(VERSION 2.8)
project(SDL2 C)
+
+# !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
+# !!! FIXME: for the SDL2 shared library (so you get an
+# !!! FIXME: install_name ("soname") of "@rpath/libSDL-whatever.dylib"
+# !!! FIXME: instead of "/usr/local/lib/libSDL-whatever.dylib"), but I'm
+# !!! FIXME: punting for now and leaving the existing behavior. Until this
+# !!! FIXME: properly resolved, this line silences a warning in CMake 3.0+.
+# !!! FIXME: remove it and this comment entirely once the problem is
+# !!! FIXME: properly resolved.
+#cmake_policy(SET CMP0042 OLD)
+
include(CheckFunctionExists)
include(CheckLibraryExists)
include(CheckIncludeFiles)
@@ -147,8 +158,10 @@ endif()
# Default flags, if not set otherwise
if("$ENV{CFLAGS}" STREQUAL "")
- if(USE_GCC OR USE_CLANG)
- set(CMAKE_C_FLAGS "-g -O3")
+ if(CMAKE_BUILD_TYPE STREQUAL "")
+ if(USE_GCC OR USE_CLANG)
+ set(CMAKE_C_FLAGS "-g -O3")
+ endif()
endif()
else()
set(CMAKE_C_FLAGS "$ENV{CFLAGS}")
@@ -296,8 +309,10 @@ set_option(VIDEO_VIVANTE "Use Vivante EGL video driver" ${UNIX_SYS})
# TODO: We should (should we?) respect cmake's ${BUILD_SHARED_LIBS} flag here
# The options below are for compatibility to configure's default behaviour.
-set(SDL_SHARED ON CACHE BOOL "Build a shared version of the library")
-set(SDL_STATIC OFF CACHE BOOL "Build a static version of the library")
+set(SDL_SHARED ${SDL_SHARED_ENABLED_BY_DEFAULT} CACHE BOOL "Build a shared version of the library")
+set(SDL_STATIC ON CACHE BOOL "Build a static version of the library")
+
+dep_option(SDL_STATIC_PIC "Static version of the library should be built with Position Independent Code" OFF "SDL_STATIC" OFF)
# General source files
file(GLOB SOURCE_FILES
@@ -334,6 +349,24 @@ set(HAVE_ASSERTIONS ${ASSERTIONS})
# Compiler option evaluation
if(USE_GCC OR USE_CLANG)
+ # Check for -Wall first, so later things can override pieces of it.
+ check_c_compiler_flag(-Wall HAVE_GCC_WALL)
+ if(HAVE_GCC_WALL)
+ list(APPEND EXTRA_CFLAGS "-Wall")
+ if(HAIKU)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
+ endif()
+ endif()
+
+ check_c_compiler_flag(-Wdeclaration-after-statement HAVE_GCC_WDECLARATION_AFTER_STATEMENT)
+ if(HAVE_GCC_WDECLARATION_AFTER_STATEMENT)
+ check_c_compiler_flag(-Werror=declaration-after-statement HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT)
+ if(HAVE_GCC_WERROR_DECLARATION_AFTER_STATEMENT)
+ list(APPEND EXTRA_CFLAGS "-Werror=declaration-after-statement")
+ endif()
+ list(APPEND EXTRA_CFLAGS "-Wdeclaration-after-statement")
+ endif()
+
if(DEPENDENCY_TRACKING)
check_c_source_compiles("
#if !defined(__GNUC__) || __GNUC__ < 3
@@ -375,13 +408,6 @@ if(USE_GCC OR USE_CLANG)
endif()
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
- check_c_compiler_flag(-Wall HAVE_GCC_WALL)
- if(HAVE_GCC_WALL)
- list(APPEND EXTRA_CFLAGS "-Wall")
- if(HAIKU)
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-multichar")
- endif()
- endif()
check_c_compiler_flag(-Wshadow HAVE_GCC_WSHADOW)
if(HAVE_GCC_WSHADOW)
list(APPEND EXTRA_CFLAGS "-Wshadow")
@@ -933,7 +959,14 @@ elseif(UNIX AND NOT APPLE)
if(RPATH)
set(SDL_RLD_FLAGS "")
if(BSDI OR FREEBSD OR LINUX OR NETBSD)
- set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir}")
+ set(CMAKE_REQUIRED_FLAGS "-Wl,--enable-new-dtags")
+ check_c_compiler_flag("" HAVE_ENABLE_NEW_DTAGS)
+ set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
+ if(HAVE_ENABLE_NEW_DTAGS)
+ set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir} -Wl,--enable-new-dtags")
+ else()
+ set(SDL_RLD_FLAGS "-Wl,-rpath,\${libdir}")
+ endif()
elseif(SOLARIS)
set(SDL_RLD_FLAGS "-R\${libdir}")
endif()
@@ -959,8 +992,6 @@ elseif(WINDOWS)
endif()
endif()
- set(SDL_LINK_DIR ${PARENT_SCOPE})
-
# Check for DirectX
if(DIRECTX)
if(DEFINED MSVC_VERSION AND NOT ${MSVC_VERSION} LESS 1700)
@@ -994,15 +1025,13 @@ elseif(WINDOWS)
set(HAVE_DIRECTX TRUE)
if(NOT CMAKE_COMPILER_IS_MINGW AND NOT USE_WINSDK_DIRECTX)
# TODO: change $ENV{DXSDL_DIR} to get the path from the include checks
- set(SDL_LINK_DIR $ENV{DXSDK_DIR}\\lib\\${PROCESSOR_ARCH} ${SDL_LINK_DIR})
+ link_directories($ENV{DXSDK_DIR}\\lib\\${PROCESSOR_ARCH})
include_directories($ENV{DXSDK_DIR}\\Include)
endif()
endif()
set(CMAKE_REQUIRED_FLAGS ${ORIG_CMAKE_REQUIRED_FLAGS})
endif()
- link_directories(${SDL_LINK_DIR})
-
if(SDL_AUDIO)
set(SDL_AUDIO_DRIVER_WINMM 1)
file(GLOB WINMM_AUDIO_SOURCES ${SDL2_SOURCE_DIR}/src/audio/winmm/*.c)
@@ -1109,7 +1138,7 @@ elseif(WINDOWS)
set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
if(HAVE_DINPUT_H)
set(SDL_JOYSTICK_DINPUT 1)
- list(APPEND EXTRA_LIBS dinput8 dxguid)
+ list(APPEND EXTRA_LIBS dinput8)
if(CMAKE_COMPILER_IS_MINGW)
list(APPEND EXTRA_LIBS dxerr8)
elseif (NOT USE_WINSDK_DIRECTX)
@@ -1443,6 +1472,9 @@ message(STATUS " EXTRA_LIBS: ${EXTRA_LIBS}")
message(STATUS "")
message(STATUS " Build Shared Library: ${SDL_SHARED}")
message(STATUS " Build Static Library: ${SDL_STATIC}")
+if(SDL_STATIC)
+ message(STATUS " Build Static Library with Position Independent Code: ${SDL_STATIC_PIC}")
+endif()
message(STATUS "")
if(UNIX)
message(STATUS "If something was not detected, although the libraries")
@@ -1460,7 +1492,6 @@ set(_INSTALL_LIBS "SDL2main")
if(SDL_SHARED)
add_library(SDL2 SHARED ${SOURCE_FILES})
- install(TARGETS SDL2 RUNTIME DESTINATION . LIBRARY DESTINATION .)
if(UNIX)
set_target_properties(SDL2 PROPERTIES
VERSION ${LT_VERSION}
@@ -1480,13 +1511,13 @@ if(SDL_SHARED)
endif()
set(_INSTALL_LIBS "SDL2" ${_INSTALL_LIBS})
target_link_libraries(SDL2 ${EXTRA_LIBS} ${EXTRA_LDFLAGS})
- target_include_directories(SDL2 PUBLIC include)
endif()
if(SDL_STATIC)
set (BUILD_SHARED_LIBS FALSE)
add_library(SDL2-static STATIC ${SOURCE_FILES})
set_target_properties(SDL2-static PROPERTIES OUTPUT_NAME "SDL2")
+ set_target_properties(SDL2-static PROPERTIES POSITION_INDEPENDENT_CODE ${SDL_STATIC_PIC})
if(MSVC)
set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_RELEASE "/NODEFAULTLIB")
set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB")
@@ -1499,11 +1530,6 @@ if(SDL_STATIC)
endif()
##### Installation targets #####
-
-if(MEGA)
- return()
-endif()
-
install(TARGETS ${_INSTALL_LIBS}
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
@@ -1518,12 +1544,17 @@ endforeach()
list(APPEND INCLUDE_FILES ${BIN_INCLUDE_FILES})
install(FILES ${INCLUDE_FILES} DESTINATION include/SDL2)
-if(NOT WINDOWS OR CYGWIN)
+if(NOT (WINDOWS OR CYGWIN))
if(SDL_SHARED)
+ if (APPLE)
+ set(SOEXT "dylib")
+ else()
+ set(SOEXT "so")
+ endif()
install(CODE "
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
- \"libSDL2-2.0.so\" \"libSDL2.so\")")
- install(FILES ${SDL2_BINARY_DIR}/libSDL2.so DESTINATION "lib${LIB_SUFFIX}")
+ \"libSDL2-2.0.${SOEXT}\" \"libSDL2.${SOEXT}\")")
+ install(FILES ${SDL2_BINARY_DIR}/libSDL2.${SOEXT} DESTINATION "lib${LIB_SUFFIX}")
endif()
if(FREEBSD)
# FreeBSD uses ${PREFIX}/libdata/pkgconfig
diff --git a/libs/SDL2/COPYING.txt b/libs/SDL2/COPYING.txt
index 5873af74..04f14eed 100644
--- a/libs/SDL2/COPYING.txt
+++ b/libs/SDL2/COPYING.txt
@@ -1,6 +1,6 @@
Simple DirectMedia Layer
-Copyright (C) 1997-2015 Sam Lantinga
+Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/Makefile.psp b/libs/SDL2/Makefile.psp
index 5e7dcd29..93fb9e44 100644
--- a/libs/SDL2/Makefile.psp
+++ b/libs/SDL2/Makefile.psp
@@ -49,6 +49,7 @@ OBJS= src/SDL.o \
src/stdlib/SDL_stdlib.o \
src/stdlib/SDL_string.o \
src/thread/SDL_thread.o \
+ src/thread/generic/SDL_systls.o \
src/thread/psp/SDL_syssem.o \
src/thread/psp/SDL_systhread.o \
src/thread/psp/SDL_sysmutex.o \
diff --git a/libs/SDL2/README-SDL.txt b/libs/SDL2/README-SDL.txt
index 0630395e..c3d2d37e 100644
--- a/libs/SDL2/README-SDL.txt
+++ b/libs/SDL2/README-SDL.txt
@@ -2,8 +2,8 @@
Please distribute this file with the SDL runtime environment:
The Simple DirectMedia Layer (SDL for short) is a cross-platform library
-designed to make it easy to write multi-media software, such as games and
-emulators.
+designed to make it easy to write multi-media software, such as games
+and emulators.
The Simple DirectMedia Layer library source code is available from:
http://www.libsdl.org/
diff --git a/libs/SDL2/VisualC.html b/libs/SDL2/VisualC.html
index 89035d67..0631832e 100644
--- a/libs/SDL2/VisualC.html
+++ b/libs/SDL2/VisualC.html
@@ -21,7 +21,7 @@
There are different solution files for the various
- versions of the IDE. Please use the appropiate version
+ versions of the IDE. Please use the appropriate version
2008, 2010, 2012 or 2013.
@@ -101,7 +101,7 @@
files to project")
Instead of adding the files to your project it is more
- desireable to add them to the linker options: Project|Properties|Linker|Command
+ desirable to add them to the linker options: Project|Properties|Linker|Command
Line and type the names of the libraries to link with in the "Additional
Options:" box. Note: This must be done for each build
configuration (e.g. Release,Debug).
diff --git a/libs/SDL2/WhatsNew.txt b/libs/SDL2/WhatsNew.txt
index b37591d8..698ebf7d 100644
--- a/libs/SDL2/WhatsNew.txt
+++ b/libs/SDL2/WhatsNew.txt
@@ -71,13 +71,13 @@ Linux:
iOS:
* Added support for iOS 8
+* The SDL_WINDOW_ALLOW_HIGHDPI window flag now enables high-dpi support, and SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() gets the window resolution in pixels
+* SDL_GetWindowSize() and display mode sizes are in the "DPI-independent points" / "screen coordinates" coordinate space rather than pixels (matches OS X behavior)
+* Added native resolution support for the iPhone 6 Plus
* Added support for MFi game controllers
* Added support for the hint SDL_HINT_ACCELEROMETER_AS_JOYSTICK
* Added sRGB OpenGL ES context support on iOS 7+
-* Added native resolution support for the iPhone 6 Plus
* Added support for SDL_DisableScreenSaver(), SDL_EnableScreenSaver() and the hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER
-* The SDL_WINDOW_ALLOW_HIGHDPI window flag now enables high-dpi support, and SDL_GL_GetDrawableSize() or SDL_GetRendererOutputSize() gets the window resolution in pixels
-* SDL_GetWindowSize() and display mode sizes are in the "DPI-independent points" coordinate space rather than pixels (matches OS X behavior)
* SDL_SysWMinfo now contains the OpenGL ES framebuffer and color renderbuffer objects used by the window's active GLES view
* Fixed various rotation and orientation issues
* Fixed memory leaks
diff --git a/libs/SDL2/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj b/libs/SDL2/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
index 9f0d62e8..b0830bf4 100755
--- a/libs/SDL2/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
+++ b/libs/SDL2/Xcode-iOS/SDL/SDL.xcodeproj/project.pbxproj
@@ -143,7 +143,9 @@
AABCC3941640643D00AB8930 /* SDL_uikitmessagebox.h in Headers */ = {isa = PBXBuildFile; fileRef = AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */; };
AABCC3951640643D00AB8930 /* SDL_uikitmessagebox.m in Sources */ = {isa = PBXBuildFile; fileRef = AABCC3931640643D00AB8930 /* SDL_uikitmessagebox.m */; };
AADA5B8F16CCAB7C00107CF7 /* SDL_bits.h in Headers */ = {isa = PBXBuildFile; fileRef = AADA5B8E16CCAB7C00107CF7 /* SDL_bits.h */; };
- FAD4F7021BA3C4E8008346CE /* SDL_sysjoystick_c.h in Headers */ = {isa = PBXBuildFile; fileRef = FAD4F7011BA3C4E8008346CE /* SDL_sysjoystick_c.h */; settings = {ASSET_TAGS = (); }; };
+ FA1DC2721C62BE65008F99A0 /* SDL_uikitclipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = FA1DC2701C62BE65008F99A0 /* SDL_uikitclipboard.h */; };
+ FA1DC2731C62BE65008F99A0 /* SDL_uikitclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = FA1DC2711C62BE65008F99A0 /* SDL_uikitclipboard.m */; };
+ FAD4F7021BA3C4E8008346CE /* SDL_sysjoystick_c.h in Headers */ = {isa = PBXBuildFile; fileRef = FAD4F7011BA3C4E8008346CE /* SDL_sysjoystick_c.h */; };
FD3F4A760DEA620800C5B771 /* SDL_getenv.c in Sources */ = {isa = PBXBuildFile; fileRef = FD3F4A700DEA620800C5B771 /* SDL_getenv.c */; };
FD3F4A770DEA620800C5B771 /* SDL_iconv.c in Sources */ = {isa = PBXBuildFile; fileRef = FD3F4A710DEA620800C5B771 /* SDL_iconv.c */; };
FD3F4A780DEA620800C5B771 /* SDL_malloc.c in Sources */ = {isa = PBXBuildFile; fileRef = FD3F4A720DEA620800C5B771 /* SDL_malloc.c */; };
@@ -340,6 +342,8 @@
AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitmessagebox.h; sourceTree = ""; };
AABCC3931640643D00AB8930 /* SDL_uikitmessagebox.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitmessagebox.m; sourceTree = ""; };
AADA5B8E16CCAB7C00107CF7 /* SDL_bits.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_bits.h; sourceTree = ""; };
+ FA1DC2701C62BE65008F99A0 /* SDL_uikitclipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitclipboard.h; sourceTree = ""; };
+ FA1DC2711C62BE65008F99A0 /* SDL_uikitclipboard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_uikitclipboard.m; sourceTree = ""; };
FAD4F7011BA3C4E8008346CE /* SDL_sysjoystick_c.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_sysjoystick_c.h; sourceTree = ""; };
FD0BBFEF0E3933DD00D833B1 /* SDL_uikitview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_uikitview.h; sourceTree = ""; };
FD3F4A700DEA620800C5B771 /* SDL_getenv.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_getenv.c; sourceTree = ""; };
@@ -648,6 +652,8 @@
FDC261780E3A3FC8001C4554 /* keyinfotable.h */,
FD689FCD0E26E9D400F90B21 /* SDL_uikitappdelegate.h */,
FD689FCC0E26E9D400F90B21 /* SDL_uikitappdelegate.m */,
+ FA1DC2701C62BE65008F99A0 /* SDL_uikitclipboard.h */,
+ FA1DC2711C62BE65008F99A0 /* SDL_uikitclipboard.m */,
FD689F0C0E26E5D900F90B21 /* SDL_uikitevents.h */,
FD689F0D0E26E5D900F90B21 /* SDL_uikitevents.m */,
AABCC3921640643D00AB8930 /* SDL_uikitmessagebox.h */,
@@ -994,6 +1000,7 @@
04F7808012FB751400FC43C0 /* SDL_drawpoint.h in Headers */,
04F7808412FB753F00FC43C0 /* SDL_nullframebuffer_c.h in Headers */,
0442EC5012FE1C1E004C9285 /* SDL_render_sw_c.h in Headers */,
+ FA1DC2721C62BE65008F99A0 /* SDL_uikitclipboard.h in Headers */,
0402A85A12FE70C600CECEE3 /* SDL_shaders_gles2.h in Headers */,
04BAC09C1300C1290055DE28 /* SDL_assert_c.h in Headers */,
56EA86FC13E9EC2B002E47EB /* SDL_coreaudio.h in Headers */,
@@ -1139,6 +1146,7 @@
FD65266A0DE8FCDD002AD96B /* SDL_audiotypecvt.c in Sources */,
FD65266B0DE8FCDD002AD96B /* SDL_mixer.c in Sources */,
FD65266F0DE8FCDD002AD96B /* SDL_wave.c in Sources */,
+ FA1DC2731C62BE65008F99A0 /* SDL_uikitclipboard.m in Sources */,
FD6526700DE8FCDD002AD96B /* SDL_cpuinfo.c in Sources */,
FD6526710DE8FCDD002AD96B /* SDL_events.c in Sources */,
FD6526720DE8FCDD002AD96B /* SDL_keyboard.c in Sources */,
diff --git a/libs/SDL2/Xcode-iOS/Test/README b/libs/SDL2/Xcode-iOS/Test/README
index b16ff7c0..b8d9ed3b 100644
--- a/libs/SDL2/Xcode-iOS/Test/README
+++ b/libs/SDL2/Xcode-iOS/Test/README
@@ -1,22 +1,11 @@
TestiPhoneOS.xcodeproj contains targets to compile many of the SDL test programs for iPhone OS. Most of these test programs work fine, with the following exceptions:
-testalpha:
- Program crashes. Problem appears to effect Mac OS X as well.
-
testthread:
SIGTERM kills the process immediately without executing the 'kill' function. The posix standard says this shouldn't happen. Apple seems intent on having iPhone apps exit promptly when the user requests it, so maybe that's why(?)
testlock:
Locks appear to work, but there doesn't appear to be a simple way to send the process SIGINT.
-testpalette:
- "SDL error: blitting boat: Blit combination not supported." Happens on Mac OS X as well.
-
testsprite2:
SDL_CreateTextureFromSurface requests an ARGB pixel format, but iPhone's SDL video driver only supports ABGR.
-testwin:
- Behaves as it does under Mac OS X ... not sure if that is correctly or not.
-
-threadwin:
- Works if -threaded is not on. Otherwise it doesn't work, but this is true under Mac OS X as well.
diff --git a/libs/SDL2/Xcode/SDL/pkg-support/resources/License.txt b/libs/SDL2/Xcode/SDL/pkg-support/resources/License.txt
index e6a9ef84..3c7724df 100644
--- a/libs/SDL2/Xcode/SDL/pkg-support/resources/License.txt
+++ b/libs/SDL2/Xcode/SDL/pkg-support/resources/License.txt
@@ -1,6 +1,6 @@
Simple DirectMedia Layer
-Copyright (C) 1997-2015 Sam Lantinga
+Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/android-project/src/org/libsdl/app/SDLActivity.java b/libs/SDL2/android-project/src/org/libsdl/app/SDLActivity.java
index 0a2e5d87..bc81b03e 100644
--- a/libs/SDL2/android-project/src/org/libsdl/app/SDLActivity.java
+++ b/libs/SDL2/android-project/src/org/libsdl/app/SDLActivity.java
@@ -1196,6 +1196,20 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
}
}
+ if ((event.getSource() & InputDevice.SOURCE_MOUSE) != 0) {
+ // on some devices key events are sent for mouse BUTTON_BACK/FORWARD presses
+ // they are ignored here because sending them as mouse input to SDL is messy
+ if ((keyCode == KeyEvent.KEYCODE_BACK) || (keyCode == KeyEvent.KEYCODE_FORWARD)) {
+ switch (event.getAction()) {
+ case KeyEvent.ACTION_DOWN:
+ case KeyEvent.ACTION_UP:
+ // mark the event as handled or it will be handled by system
+ // handling KEYCODE_BACK by system will call onBackPressed()
+ return true;
+ }
+ }
+ }
+
return false;
}
@@ -1214,7 +1228,7 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
// !!! FIXME: dump this SDK check after 2.0.4 ships and require API14.
if (event.getSource() == InputDevice.SOURCE_MOUSE && SDLActivity.mSeparateMouseAndTouch) {
if (Build.VERSION.SDK_INT < 14) {
- mouseButton = 1; // For Android==12 all mouse buttons are the left button
+ mouseButton = 1; // all mouse buttons are the left button
} else {
try {
mouseButton = (Integer) event.getClass().getMethod("getButtonState").invoke(event);
@@ -1627,8 +1641,7 @@ class SDLGenericMotionListener_API12 implements View.OnGenericMotionListener {
case InputDevice.SOURCE_JOYSTICK:
case InputDevice.SOURCE_GAMEPAD:
case InputDevice.SOURCE_DPAD:
- SDLActivity.handleJoystickMotionEvent(event);
- return true;
+ return SDLActivity.handleJoystickMotionEvent(event);
case InputDevice.SOURCE_MOUSE:
action = event.getActionMasked();
diff --git a/libs/SDL2/build-scripts/checker-buildbot.sh b/libs/SDL2/build-scripts/checker-buildbot.sh
index 682e7fbb..eb014311 100755
--- a/libs/SDL2/build-scripts/checker-buildbot.sh
+++ b/libs/SDL2/build-scripts/checker-buildbot.sh
@@ -61,13 +61,13 @@ mkdir checker-buildbot
cd checker-buildbot
# You might want to do this for CMake-backed builds instead...
-PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug ..
+PATH="$CHECKERDIR:$PATH" scan-build -o analysis cmake -DCMAKE_BUILD_TYPE=Debug -DASSERTIONS=enabled ..
# ...or run configure without the scan-build wrapper...
-#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure
+#CC="$CHECKERDIR/libexec/ccc-analyzer" CFLAGS="-O0" ../configure --enable-assertions=enabled
# ...but this works for our buildbots just fine (EXCEPT ON LATEST MAC OS X).
-#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure
+#CFLAGS="-O0" PATH="$CHECKERDIR:$PATH" scan-build -o analysis ../configure --enable-assertions=enabled
rm -rf analysis
PATH="$CHECKERDIR:$PATH" scan-build -o analysis $MAKE
diff --git a/libs/SDL2/build-scripts/update-copyright.sh b/libs/SDL2/build-scripts/update-copyright.sh
index fdfb5ca9..34864bc9 100755
--- a/libs/SDL2/build-scripts/update-copyright.sh
+++ b/libs/SDL2/build-scripts/update-copyright.sh
@@ -4,6 +4,6 @@ find . -type f -exec grep -Il "Copyright" {} \; \
| grep -v \.hg \
| while read i; \
do \
- sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
+ LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
rm "${i}e"; \
done
diff --git a/libs/SDL2/cmake/sdlchecks.cmake b/libs/SDL2/cmake/sdlchecks.cmake
index 7ff0985f..c4616cca 100644
--- a/libs/SDL2/cmake/sdlchecks.cmake
+++ b/libs/SDL2/cmake/sdlchecks.cmake
@@ -679,7 +679,6 @@ macro(CheckOpenGLX11)
set(SDL_VIDEO_OPENGL 1)
set(SDL_VIDEO_OPENGL_GLX 1)
set(SDL_VIDEO_RENDER_OGL 1)
- list(APPEND EXTRA_LIBS GL)
endif()
endif()
endmacro()
diff --git a/libs/SDL2/configure b/libs/SDL2/configure
index a41f0259..b73ea4d9 100755
--- a/libs/SDL2/configure
+++ b/libs/SDL2/configure
@@ -18650,6 +18650,43 @@ $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
fi
}
+CheckDeclarationAfterStatement()
+{
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
+$as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
+ have_gcc_declaration_after_statement=no
+
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+ int x = 0;
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ have_gcc_declaration_after_statement=yes
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
+$as_echo "$have_gcc_declaration_after_statement" >&6; }
+ CFLAGS="$save_CFLAGS"
+
+ if test x$have_gcc_declaration_after_statement = xyes; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
+ fi
+}
+
CheckWarnAll()
{
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
@@ -18928,7 +18965,7 @@ int
main ()
{
- MirMotionToolType tool = mir_motion_tool_type_mouse;
+ MirPointerButton button = mir_pointer_button_primary;
;
return 0;
@@ -22894,6 +22931,8 @@ fi
}
+CheckWarnAll
+
case "$host" in
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
case "$host" in
@@ -22962,6 +23001,7 @@ case "$host" in
*-*-minix*) ARCH=minix ;;
esac
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -23392,6 +23432,7 @@ $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
ARCH=ios
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -23461,6 +23502,7 @@ $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -23581,6 +23623,7 @@ $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
fi
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -23630,8 +23673,6 @@ $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
;;
esac
-CheckWarnAll
-
# Verify that we have all the platform specific files we need
if test x$have_joystick != xyes; then
@@ -23722,6 +23763,36 @@ SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\
if test "x$enable_rpath" = "xyes"; then
if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
+$as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
+ have_enable_new_dtags=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+
+int
+main ()
+{
+
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ have_enable_new_dtags=yes
+ SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
+$as_echo "$have_enable_new_dtags" >&6; }
fi
if test $ARCH = solaris; then
SDL_RLD_FLAGS="-R\${libdir}"
diff --git a/libs/SDL2/configure.in b/libs/SDL2/configure.in
index f585d01a..424e3e5e 100644
--- a/libs/SDL2/configure.in
+++ b/libs/SDL2/configure.in
@@ -1124,6 +1124,30 @@ CheckStackBoundary()
fi
}
+dnl See if GCC's -Wdeclaration-after-statement is supported.
+dnl This lets us catch things that would fail on a C89 compiler when using
+dnl a modern GCC.
+CheckDeclarationAfterStatement()
+{
+ AC_MSG_CHECKING(for GCC -Wdeclaration-after-statement option)
+ have_gcc_declaration_after_statement=no
+
+ save_CFLAGS="$CFLAGS"
+ CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
+ AC_TRY_COMPILE([
+ int x = 0;
+ ],[
+ ],[
+ have_gcc_declaration_after_statement=yes
+ ])
+ AC_MSG_RESULT($have_gcc_declaration_after_statement)
+ CFLAGS="$save_CFLAGS"
+
+ if test x$have_gcc_declaration_after_statement = xyes; then
+ EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
+ fi
+}
+
dnl See if GCC's -Wall is supported.
CheckWarnAll()
{
@@ -1260,12 +1284,12 @@ AC_HELP_STRING([--enable-video-mir], [use Mir video driver [[default=yes]]]),
MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
save_CFLAGS="$CFLAGS"
CFLAGS="$save_CFLAGS $MIR_CFLAGS"
-
- dnl This will disable Mir on Ubuntu < 14.04
+
+ dnl This will disable Mir on Ubuntu < 15.04 (Mir should be 0.14 at this point)
AC_TRY_COMPILE([
#include
],[
- MirMotionToolType tool = mir_motion_tool_type_mouse;
+ MirPointerButton button = mir_pointer_button_primary;
],[
video_mir=yes
])
@@ -2801,6 +2825,9 @@ AC_HELP_STRING([--enable-rpath], [use an rpath when linking SDL [[default=yes]]]
, enable_rpath=yes)
}
+dnl Do this on all platforms, before everything else (other things might want to override it).
+CheckWarnAll
+
dnl Set up the configuration based on the host platform!
case "$host" in
*-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
@@ -2870,6 +2897,7 @@ case "$host" in
*-*-minix*) ARCH=minix ;;
esac
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -3196,6 +3224,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
ARCH=ios
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -3265,6 +3294,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -3366,6 +3396,7 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
fi
CheckVisibilityHidden
+ CheckDeclarationAfterStatement
CheckDummyVideo
CheckDiskAudio
CheckDummyAudio
@@ -3407,9 +3438,6 @@ AC_HELP_STRING([--enable-render-d3d], [enable the Direct3D render driver [[defau
;;
esac
-dnl Do this on all platforms, after everything else.
-CheckWarnAll
-
# Verify that we have all the platform specific files we need
if test x$have_joystick != xyes; then
@@ -3488,6 +3516,19 @@ SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.
if test "x$enable_rpath" = "xyes"; then
if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
+
+ AC_MSG_CHECKING(for linker option --enable-new-dtags)
+ have_enable_new_dtags=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
+ AC_TRY_LINK([
+ ],[
+ ],[
+ have_enable_new_dtags=yes
+ SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
+ ])
+ LDFLAGS="$save_LDFLAGS"
+ AC_MSG_RESULT($have_enable_new_dtags)
fi
if test $ARCH = solaris; then
SDL_RLD_FLAGS="-R\${libdir}"
diff --git a/libs/SDL2/debian/changelog b/libs/SDL2/debian/changelog
index 84d1b878..6a88d247 100644
--- a/libs/SDL2/debian/changelog
+++ b/libs/SDL2/debian/changelog
@@ -1,3 +1,9 @@
+libsdl2 (2.0.4) UNRELEASED; urgency=low
+
+ * Updated SDL to version 2.0.4
+
+ -- Sam Lantinga Thu, 07 Jan 2016 11:02:39 -0800
+
libsdl2 (2.0.3) UNRELEASED; urgency=low
* Updated SDL to version 2.0.3
diff --git a/libs/SDL2/debian/copyright b/libs/SDL2/debian/copyright
index 31860bbe..99c3d449 100644
--- a/libs/SDL2/debian/copyright
+++ b/libs/SDL2/debian/copyright
@@ -4,7 +4,7 @@ Upstream-Contact: Sam Lantinga
Source: http://www.libsdl.org/
Files: *
-Copyright: 1997-2015 Sam Lantinga
+Copyright: 1997-2016 Sam Lantinga
License: zlib/libpng
Files: src/libm/*
@@ -12,7 +12,7 @@ Copyright: 1993 by Sun Microsystems, Inc. All rights reserved.
License: SunPro
Files: src/main/windows/SDL_windows_main.c
-Copyright: 2015 Sam Lantinga
+Copyright: 2016 Sam Lantinga
License: PublicDomain_Sam_Lantinga
Comment: SDL_main.c, placed in the public domain by Sam Lantinga 4/13/98
@@ -31,12 +31,8 @@ Copyright: 1995 Erik Corry
1995 Brown University
License: BrownUn_UnCalifornia_ErikCorry
-Files: src/stdlib/SDL_qsort.c
-Copyright: 1998 Gareth McCaughan
-License: Gareth_McCaughan
-
Files: src/test/SDL_test_md5.c
-Copyright: 1997-2015 Sam Lantinga
+Copyright: 1997-2016 Sam Lantinga
1990 RSA Data Security, Inc.
License: zlib/libpng and RSA_Data_Security
@@ -50,12 +46,12 @@ Copyright: 1994-2003 The XFree86 Project, Inc.
License: MIT/X11
Files: test/testhaptic.c
-Copyright: 1997-2015 Sam Lantinga
+Copyright: 1997-2016 Sam Lantinga
2008 Edgar Simo Serra
License: BSD_3_clause
Files: test/testrumble.c
-Copyright: 1997-2015 Sam Lantinga
+Copyright: 1997-2016 Sam Lantinga
2011 Edgar Simo Serra
License: BSD_3_clause
@@ -173,7 +169,7 @@ License: BSD_3_clause
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Comment:
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -270,13 +266,6 @@ License: BrownUn_UnCalifornia_ErikCorry
* SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*/
-License: Gareth_McCaughan
- You may use it in anything you like; you may make money
- out of it; you may distribute it in object form or as
- part of an executable without including source code;
- you don't have to credit me. (But it would be nice if
- you did.)
-
License: Johnson_M._Hart
Permission is granted for any and all use providing that this
copyright is properly acknowledged.
diff --git a/libs/SDL2/debian/libsdl2-dev.install b/libs/SDL2/debian/libsdl2-dev.install
index 7f99ff42..af2c5b19 100644
--- a/libs/SDL2/debian/libsdl2-dev.install
+++ b/libs/SDL2/debian/libsdl2-dev.install
@@ -5,4 +5,5 @@ usr/lib/*/libSDL2.a
usr/lib/*/libSDL2main.a
usr/lib/*/libSDL2_test.a
usr/lib/*/pkgconfig/sdl2.pc
+usr/lib/*/cmake/SDL2/sdl2-config.cmake
usr/share/aclocal/sdl2.m4
diff --git a/libs/SDL2/docs/README-android.md b/libs/SDL2/docs/README-android.md
index a4b38210..bf7b1cdc 100644
--- a/libs/SDL2/docs/README-android.md
+++ b/libs/SDL2/docs/README-android.md
@@ -67,13 +67,13 @@ For more complex projects, follow these instructions:
1. Copy the android-project directory wherever you want to keep your projects
and rename it to the name of your project.
-2. Move or symlink this SDL directory into the /jni directory
-3. Edit /jni/src/Android.mk to include your source files
+2. Move or symlink this SDL directory into the "/jni" directory
+3. Edit "/jni/src/Android.mk" to include your source files
4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
If you want to use the Eclipse IDE, skip to the Eclipse section below.
-5. Create /local.properties and use that to point to the Android SDK directory, by writing a line with the following form:
+5. Create "/local.properties" and use that to point to the Android SDK directory, by writing a line with the following form:
sdk.dir=PATH_TO_ANDROID_SDK
@@ -121,15 +121,15 @@ This build uses the Android NDK module system.
Instructions:
1. Copy the android-project directory wherever you want to keep your projects
and rename it to the name of your project.
-2. Rename /jni/src/Android_static.mk to /jni/src/Android.mk
+2. Rename "/jni/src/Android_static.mk" to "/jni/src/Android.mk"
(overwrite the existing one)
-3. Edit /jni/src/Android.mk to include your source files
+3. Edit "/jni/src/Android.mk" to include your source files
4. create and export an environment variable named NDK_MODULE_PATH that points
to the parent directory of this SDL directory. e.g.:
export NDK_MODULE_PATH="$PWD"/..
-5. Edit /src/org/libsdl/app/SDLActivity.java and remove the call to
+5. Edit "/src/org/libsdl/app/SDLActivity.java" and remove the call to
System.loadLibrary("SDL2").
6. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
diff --git a/libs/SDL2/docs/README-ios.md b/libs/SDL2/docs/README-ios.md
index 69c35d6f..a0afffb1 100644
--- a/libs/SDL2/docs/README-ios.md
+++ b/libs/SDL2/docs/README-ios.md
@@ -47,17 +47,45 @@ Using the Simple DirectMedia Layer for iOS
FIXME: This needs to be updated for the latest methods
Here is the easiest method:
-1. Build the SDL libraries (libSDL.a and libSDLSimulator.a) and the iPhone SDL Application template.
-2. Install the iPhone SDL Application template by copying it to one of XCode's template directories. I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/XCode/Project Templates/" and placing it there.
+1. Build the SDL library (libSDL2.a) and the iPhone SDL Application template.
+2. Install the iPhone SDL Application template by copying it to one of Xcode's template directories. I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/Xcode/Project Templates/" and placing it there.
3. Start a new project using the template. The project should be immediately ready for use with SDL.
Here is a more manual method:
-1. Create a new iPhone view based application.
-2. Build the SDL static libraries (libSDL.a and libSDLSimulator.a) for iPhone and include them in your project. XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
+1. Create a new iOS view based application.
+2. Build the SDL static library (libSDL2.a) for iOS and include them in your project. Xcode will ignore the library that is not currently of the correct architecture, hence your app will work both on iOS and in the iOS Simulator.
3. Include the SDL header files in your project.
-4. Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iPhone provides its own UIApplicationDelegate. Remove MainWindow.xib -- SDL for iPhone produces its user interface programmatically.
-5. Delete the contents of main.m and program your app as a regular SDL program instead. You may replace main.m with your own main.c, but you must tell XCode not to use the project prefix file, as it includes Objective-C code.
+4. Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iOS provides its own UIApplicationDelegate. Remove MainWindow.xib -- SDL for iOS produces its user interface programmatically.
+5. Delete the contents of main.m and program your app as a regular SDL program instead. You may replace main.m with your own main.c, but you must tell Xcode not to use the project prefix file, as it includes Objective-C code.
+==============================================================================
+Notes -- Retina / High-DPI and window sizes
+==============================================================================
+
+Window and display mode sizes in SDL are in "screen coordinates" (or "points",
+in Apple's terminology) rather than in pixels. On iOS this means that a window
+created on an iPhone 6 will have a size in screen coordinates of 375 x 667,
+rather than a size in pixels of 750 x 1334. All iOS apps are expected to
+size their content based on screen coordinates / points rather than pixels,
+as this allows different iOS devices to have different pixel densities
+(Retina versus non-Retina screens, etc.) without apps caring too much.
+
+By default SDL will not use the full pixel density of the screen on
+Retina/high-dpi capable devices. Use the SDL_WINDOW_ALLOW_HIGHDPI flag when
+creating your window to enable high-dpi support.
+
+When high-dpi support is enabled, SDL_GetWindowSize and display mode sizes
+will still be in "screen coordinates" rather than pixels, but the window will
+have a much greater pixel density when the device supports it, and the
+SDL_GL_GetDrawableSize or SDL_GetRendererOutputSize functions (depending on
+whether raw OpenGL or the SDL_Render API is used) can be queried to determine
+the size in pixels of the drawable screen framebuffer.
+
+Some OpenGL ES functions such as glViewport expect sizes in pixels rather than
+sizes in screen coordinates. When doing 2D rendering with OpenGL ES, an
+orthographic projection matrix using the size in screen coordinates
+(SDL_GetWindowSize) can be used in order to display content at the same scale
+no matter whether a Retina device is used or not.
==============================================================================
Notes -- Application events
@@ -203,7 +231,7 @@ Loading Shared Objects:
Game Center
==============================================================================
-Game Center integration requires that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
+Game Center integration might require that you break up your main loop in order to yield control back to the system. In other words, instead of running an endless main loop, you run each frame in a callback function, using:
int SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
diff --git a/libs/SDL2/docs/README-macosx.md b/libs/SDL2/docs/README-macosx.md
index 747e1e60..693e1947 100644
--- a/libs/SDL2/docs/README-macosx.md
+++ b/libs/SDL2/docs/README-macosx.md
@@ -96,7 +96,7 @@ APP_NAME_bundle: EXE_NAME
You should replace EXE_NAME with the name of the executable. APP_NAME is what
will be visible to the user in the Finder. Usually it will be the same
as EXE_NAME but capitalized. E.g. if EXE_NAME is "testgame" then APP_NAME
-usually is "TestGame". You might also want to use @PACKAGE@ to use the package
+usually is "TestGame". You might also want to use `@PACKAGE@` to use the package
name as specified in your configure.in file.
If your project builds more than one application, you will have to do a bit
diff --git a/libs/SDL2/docs/README-raspberrypi.md b/libs/SDL2/docs/README-raspberrypi.md
index ade3c81c..6b6b785f 100644
--- a/libs/SDL2/docs/README-raspberrypi.md
+++ b/libs/SDL2/docs/README-raspberrypi.md
@@ -39,7 +39,7 @@ will be placed in /opt/rpi-tools
You'll also need a Rasbian binary image.
Get it from: http://downloads.raspberrypi.org/raspbian_latest
-After unzipping, you'll get file with a name like: -wheezy-raspbian.img
+After unzipping, you'll get file with a name like: "-wheezy-raspbian.img"
Let's assume the sysroot will be built in /opt/rpi-sysroot.
export SYSROOT=/opt/rpi-sysroot
diff --git a/libs/SDL2/include/SDL.h b/libs/SDL2/include/SDL.h
index 9d1ede33..7647b511 100644
--- a/libs/SDL2/include/SDL.h
+++ b/libs/SDL2/include/SDL.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_assert.h b/libs/SDL2/include/SDL_assert.h
index 6889514d..402981f9 100644
--- a/libs/SDL2/include/SDL_assert.h
+++ b/libs/SDL2/include/SDL_assert.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_atomic.h b/libs/SDL2/include/SDL_atomic.h
index bb01eb9e..56aa81df 100644
--- a/libs/SDL2/include/SDL_atomic.h
+++ b/libs/SDL2/include/SDL_atomic.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_audio.h b/libs/SDL2/include/SDL_audio.h
index 359005d0..4f655214 100644
--- a/libs/SDL2/include/SDL_audio.h
+++ b/libs/SDL2/include/SDL_audio.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_bits.h b/libs/SDL2/include/SDL_bits.h
index c62766d9..528da2ea 100644
--- a/libs/SDL2/include/SDL_bits.h
+++ b/libs/SDL2/include/SDL_bits.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_blendmode.h b/libs/SDL2/include/SDL_blendmode.h
index c7fa09f7..56d8ad66 100644
--- a/libs/SDL2/include/SDL_blendmode.h
+++ b/libs/SDL2/include/SDL_blendmode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_clipboard.h b/libs/SDL2/include/SDL_clipboard.h
index 3ad20548..a5556f21 100644
--- a/libs/SDL2/include/SDL_clipboard.h
+++ b/libs/SDL2/include/SDL_clipboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config.h b/libs/SDL2/include/SDL_config.h
index eda76602..4270c78b 100644
--- a/libs/SDL2/include/SDL_config.h
+++ b/libs/SDL2/include/SDL_config.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config.h.cmake b/libs/SDL2/include/SDL_config.h.cmake
index 7ddfb604..44173a05 100644
--- a/libs/SDL2/include/SDL_config.h.cmake
+++ b/libs/SDL2/include/SDL_config.h.cmake
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config.h.in b/libs/SDL2/include/SDL_config.h.in
index 2c74868b..2071be4e 100644
--- a/libs/SDL2/include/SDL_config.h.in
+++ b/libs/SDL2/include/SDL_config.h.in
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_android.h b/libs/SDL2/include/SDL_config_android.h
index 8d5f1e5f..a388ba8d 100644
--- a/libs/SDL2/include/SDL_config_android.h
+++ b/libs/SDL2/include/SDL_config_android.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_iphoneos.h b/libs/SDL2/include/SDL_config_iphoneos.h
index 2d741c38..304c8920 100644
--- a/libs/SDL2/include/SDL_config_iphoneos.h
+++ b/libs/SDL2/include/SDL_config_iphoneos.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_macosx.h b/libs/SDL2/include/SDL_config_macosx.h
index e4ce82fc..5c8b7e03 100644
--- a/libs/SDL2/include/SDL_config_macosx.h
+++ b/libs/SDL2/include/SDL_config_macosx.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_minimal.h b/libs/SDL2/include/SDL_config_minimal.h
index 7721abc9..3c9d09af 100644
--- a/libs/SDL2/include/SDL_config_minimal.h
+++ b/libs/SDL2/include/SDL_config_minimal.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_pandora.h b/libs/SDL2/include/SDL_config_pandora.h
index 530e78f1..7b51e571 100644
--- a/libs/SDL2/include/SDL_config_pandora.h
+++ b/libs/SDL2/include/SDL_config_pandora.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_psp.h b/libs/SDL2/include/SDL_config_psp.h
index 26bf9d1a..a6e49609 100644
--- a/libs/SDL2/include/SDL_config_psp.h
+++ b/libs/SDL2/include/SDL_config_psp.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_windows.h b/libs/SDL2/include/SDL_config_windows.h
index 067d7f31..890986cc 100644
--- a/libs/SDL2/include/SDL_config_windows.h
+++ b/libs/SDL2/include/SDL_config_windows.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_winrt.h b/libs/SDL2/include/SDL_config_winrt.h
index 29bf79fe..e392f773 100644
--- a/libs/SDL2/include/SDL_config_winrt.h
+++ b/libs/SDL2/include/SDL_config_winrt.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_config_wiz.h b/libs/SDL2/include/SDL_config_wiz.h
index a5063ba7..e090a1a9 100644
--- a/libs/SDL2/include/SDL_config_wiz.h
+++ b/libs/SDL2/include/SDL_config_wiz.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_copying.h b/libs/SDL2/include/SDL_copying.h
index 6fd65219..212da0ee 100644
--- a/libs/SDL2/include/SDL_copying.h
+++ b/libs/SDL2/include/SDL_copying.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_cpuinfo.h b/libs/SDL2/include/SDL_cpuinfo.h
index 30d09cce..d0ba47bf 100644
--- a/libs/SDL2/include/SDL_cpuinfo.h
+++ b/libs/SDL2/include/SDL_cpuinfo.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_egl.h b/libs/SDL2/include/SDL_egl.h
index 358d869b..bea2a6c0 100644
--- a/libs/SDL2/include/SDL_egl.h
+++ b/libs/SDL2/include/SDL_egl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_endian.h b/libs/SDL2/include/SDL_endian.h
index ec7841c4..9100b103 100644
--- a/libs/SDL2/include/SDL_endian.h
+++ b/libs/SDL2/include/SDL_endian.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_error.h b/libs/SDL2/include/SDL_error.h
index 1720c43f..2f3b4b50 100644
--- a/libs/SDL2/include/SDL_error.h
+++ b/libs/SDL2/include/SDL_error.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_events.h b/libs/SDL2/include/SDL_events.h
index 8a364c2a..edb89ef4 100644
--- a/libs/SDL2/include/SDL_events.h
+++ b/libs/SDL2/include/SDL_events.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -136,6 +136,9 @@ typedef enum
/* Drag and drop events */
SDL_DROPFILE = 0x1000, /**< The system requests a file open */
+ SDL_DROPTEXT, /**< text/plain drag-and-drop event */
+ SDL_DROPBEGIN, /**< A new set of drops is beginning (NULL filename) */
+ SDL_DROPCOMPLETE, /**< Current set of drops is now complete (NULL filename) */
/* Audio hotplug events */
SDL_AUDIODEVICEADDED = 0x1100, /**< A new audio device is available */
@@ -461,9 +464,10 @@ typedef struct SDL_DollarGestureEvent
*/
typedef struct SDL_DropEvent
{
- Uint32 type; /**< ::SDL_DROPFILE */
+ Uint32 type; /**< ::SDL_DROPBEGIN or ::SDL_DROPFILE or ::SDL_DROPTEXT or ::SDL_DROPCOMPLETE */
Uint32 timestamp;
- char *file; /**< The file name, which should be freed with SDL_free() */
+ char *file; /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
+ Uint32 windowID; /**< The window that was dropped on, if any */
} SDL_DropEvent;
diff --git a/libs/SDL2/include/SDL_filesystem.h b/libs/SDL2/include/SDL_filesystem.h
index 15bda498..02999ed2 100644
--- a/libs/SDL2/include/SDL_filesystem.h
+++ b/libs/SDL2/include/SDL_filesystem.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_gamecontroller.h b/libs/SDL2/include/SDL_gamecontroller.h
index 5459387b..42087eea 100644
--- a/libs/SDL2/include/SDL_gamecontroller.h
+++ b/libs/SDL2/include/SDL_gamecontroller.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_gesture.h b/libs/SDL2/include/SDL_gesture.h
index 44983486..3c29ca7a 100644
--- a/libs/SDL2/include/SDL_gesture.h
+++ b/libs/SDL2/include/SDL_gesture.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_haptic.h b/libs/SDL2/include/SDL_haptic.h
index 0e6f523b..b36d78b1 100644
--- a/libs/SDL2/include/SDL_haptic.h
+++ b/libs/SDL2/include/SDL_haptic.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_hints.h b/libs/SDL2/include/SDL_hints.h
index c28cbad8..3bd5435f 100644
--- a/libs/SDL2/include/SDL_hints.h
+++ b/libs/SDL2/include/SDL_hints.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_joystick.h b/libs/SDL2/include/SDL_joystick.h
index 78176321..266f3b38 100644
--- a/libs/SDL2/include/SDL_joystick.h
+++ b/libs/SDL2/include/SDL_joystick.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_keyboard.h b/libs/SDL2/include/SDL_keyboard.h
index 1ad58ee3..bbba0f07 100644
--- a/libs/SDL2/include/SDL_keyboard.h
+++ b/libs/SDL2/include/SDL_keyboard.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_keycode.h b/libs/SDL2/include/SDL_keycode.h
index 66980cef..7be96357 100644
--- a/libs/SDL2/include/SDL_keycode.h
+++ b/libs/SDL2/include/SDL_keycode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_loadso.h b/libs/SDL2/include/SDL_loadso.h
index db7493ad..3d540bd7 100644
--- a/libs/SDL2/include/SDL_loadso.h
+++ b/libs/SDL2/include/SDL_loadso.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_log.h b/libs/SDL2/include/SDL_log.h
index 6ffbfc99..09be1104 100644
--- a/libs/SDL2/include/SDL_log.h
+++ b/libs/SDL2/include/SDL_log.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_main.h b/libs/SDL2/include/SDL_main.h
index c5168ba6..9ce3754e 100644
--- a/libs/SDL2/include/SDL_main.h
+++ b/libs/SDL2/include/SDL_main.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_messagebox.h b/libs/SDL2/include/SDL_messagebox.h
index 44d458f4..ec370dbb 100644
--- a/libs/SDL2/include/SDL_messagebox.h
+++ b/libs/SDL2/include/SDL_messagebox.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_mouse.h b/libs/SDL2/include/SDL_mouse.h
index 1ae31269..ea9622f0 100644
--- a/libs/SDL2/include/SDL_mouse.h
+++ b/libs/SDL2/include/SDL_mouse.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_mutex.h b/libs/SDL2/include/SDL_mutex.h
index 2765210a..b7e39734 100644
--- a/libs/SDL2/include/SDL_mutex.h
+++ b/libs/SDL2/include/SDL_mutex.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_name.h b/libs/SDL2/include/SDL_name.h
index b6a413a2..06cd4a5e 100644
--- a/libs/SDL2/include/SDL_name.h
+++ b/libs/SDL2/include/SDL_name.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_opengl.h b/libs/SDL2/include/SDL_opengl.h
index aebe30eb..780919bc 100644
--- a/libs/SDL2/include/SDL_opengl.h
+++ b/libs/SDL2/include/SDL_opengl.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_opengles.h b/libs/SDL2/include/SDL_opengles.h
index 49c709c1..bcc12777 100644
--- a/libs/SDL2/include/SDL_opengles.h
+++ b/libs/SDL2/include/SDL_opengles.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_opengles2.h b/libs/SDL2/include/SDL_opengles2.h
index 13ebd9dc..edcd1a24 100644
--- a/libs/SDL2/include/SDL_opengles2.h
+++ b/libs/SDL2/include/SDL_opengles2.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_pixels.h b/libs/SDL2/include/SDL_pixels.h
index ba24a47d..8499c328 100644
--- a/libs/SDL2/include/SDL_pixels.h
+++ b/libs/SDL2/include/SDL_pixels.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_platform.h b/libs/SDL2/include/SDL_platform.h
index 75e4c653..c6c21398 100644
--- a/libs/SDL2/include/SDL_platform.h
+++ b/libs/SDL2/include/SDL_platform.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_power.h b/libs/SDL2/include/SDL_power.h
index 89eb1718..24c05011 100644
--- a/libs/SDL2/include/SDL_power.h
+++ b/libs/SDL2/include/SDL_power.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_quit.h b/libs/SDL2/include/SDL_quit.h
index 0108ff04..cc06f28d 100644
--- a/libs/SDL2/include/SDL_quit.h
+++ b/libs/SDL2/include/SDL_quit.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_rect.h b/libs/SDL2/include/SDL_rect.h
index ebe51674..bbcb9a3b 100644
--- a/libs/SDL2/include/SDL_rect.h
+++ b/libs/SDL2/include/SDL_rect.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_render.h b/libs/SDL2/include/SDL_render.h
index de2749cc..6e3daf52 100644
--- a/libs/SDL2/include/SDL_render.h
+++ b/libs/SDL2/include/SDL_render.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -215,7 +215,7 @@ extern DECLSPEC int SDLCALL SDL_GetRendererInfo(SDL_Renderer * renderer,
SDL_RendererInfo * info);
/**
- * \brief Get the output size of a rendering context.
+ * \brief Get the output size in pixels of a rendering context.
*/
extern DECLSPEC int SDLCALL SDL_GetRendererOutputSize(SDL_Renderer * renderer,
int *w, int *h);
@@ -499,6 +499,30 @@ extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, in
*/
extern DECLSPEC void SDLCALL SDL_RenderGetLogicalSize(SDL_Renderer * renderer, int *w, int *h);
+/**
+ * \brief Set whether to force integer scales for resolution-independent rendering
+ *
+ * \param renderer The renderer for which integer scaling should be set.
+ * \param enable Enable or disable integer scaling
+ *
+ * This function restricts the logical viewport to integer values - that is, when
+ * a resolution is between two multiples of a logical size, the viewport size is
+ * rounded down to the lower multiple.
+ *
+ * \sa SDL_RenderSetLogicalSize()
+ */
+extern DECLSPEC int SDLCALL SDL_RenderSetIntegerScale(SDL_Renderer * renderer,
+ SDL_bool enable);
+
+/**
+ * \brief Get whether integer scales are forced for resolution-independent rendering
+ *
+ * \param renderer The renderer from which integer scaling should be queried.
+ *
+ * \sa SDL_RenderSetIntegerScale()
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_RenderGetIntegerScale(SDL_Renderer * renderer);
+
/**
* \brief Set the drawing area for rendering on the current target.
*
diff --git a/libs/SDL2/include/SDL_rwops.h b/libs/SDL2/include/SDL_rwops.h
index c8b024be..f460ae7d 100644
--- a/libs/SDL2/include/SDL_rwops.h
+++ b/libs/SDL2/include/SDL_rwops.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_scancode.h b/libs/SDL2/include/SDL_scancode.h
index 4bf86180..0af1dd59 100644
--- a/libs/SDL2/include/SDL_scancode.h
+++ b/libs/SDL2/include/SDL_scancode.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_shape.h b/libs/SDL2/include/SDL_shape.h
index 157d6127..db10a8f0 100644
--- a/libs/SDL2/include/SDL_shape.h
+++ b/libs/SDL2/include/SDL_shape.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_stdinc.h b/libs/SDL2/include/SDL_stdinc.h
index c1f2b6dd..887bcd2d 100644
--- a/libs/SDL2/include/SDL_stdinc.h
+++ b/libs/SDL2/include/SDL_stdinc.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_surface.h b/libs/SDL2/include/SDL_surface.h
index 3634f7d3..e63ca890 100644
--- a/libs/SDL2/include/SDL_surface.h
+++ b/libs/SDL2/include/SDL_surface.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_system.h b/libs/SDL2/include/SDL_system.h
index bdc4f968..5da9adb4 100644
--- a/libs/SDL2/include/SDL_system.h
+++ b/libs/SDL2/include/SDL_system.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_syswm.h b/libs/SDL2/include/SDL_syswm.h
index a3441fdc..71ba5f1f 100644
--- a/libs/SDL2/include/SDL_syswm.h
+++ b/libs/SDL2/include/SDL_syswm.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -106,6 +106,10 @@ typedef struct ANativeWindow ANativeWindow;
typedef void *EGLSurface;
#endif
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+#include "SDL_egl.h"
+#endif
+
/**
* These are the various supported windowing subsystems
*/
@@ -120,7 +124,8 @@ typedef enum
SDL_SYSWM_WAYLAND,
SDL_SYSWM_MIR,
SDL_SYSWM_WINRT,
- SDL_SYSWM_ANDROID
+ SDL_SYSWM_ANDROID,
+ SDL_SYSWM_VIVANTE
} SDL_SYSWM_TYPE;
/**
@@ -166,6 +171,13 @@ struct SDL_SysWMmsg
int dummy;
/* No UIKit window events yet */
} uikit;
+#endif
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+ struct
+ {
+ int dummy;
+ /* No Vivante window events yet */
+ } vivante;
#endif
/* Can't have an empty union */
int dummy;
@@ -259,6 +271,14 @@ struct SDL_SysWMinfo
} android;
#endif
+#if defined(SDL_VIDEO_DRIVER_VIVANTE)
+ struct
+ {
+ EGLNativeDisplayType display;
+ EGLNativeWindowType window;
+ } vivante;
+#endif
+
/* Can't have an empty union */
int dummy;
} info;
diff --git a/libs/SDL2/include/SDL_test.h b/libs/SDL2/include/SDL_test.h
index 77b350bd..217847bf 100644
--- a/libs/SDL2/include/SDL_test.h
+++ b/libs/SDL2/include/SDL_test.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_assert.h b/libs/SDL2/include/SDL_test_assert.h
index a800a384..29277e12 100644
--- a/libs/SDL2/include/SDL_test_assert.h
+++ b/libs/SDL2/include/SDL_test_assert.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_common.h b/libs/SDL2/include/SDL_test_common.h
index bb671fa5..0ebf31cb 100644
--- a/libs/SDL2/include/SDL_test_common.h
+++ b/libs/SDL2/include/SDL_test_common.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_compare.h b/libs/SDL2/include/SDL_test_compare.h
index bc121336..772cf9fb 100644
--- a/libs/SDL2/include/SDL_test_compare.h
+++ b/libs/SDL2/include/SDL_test_compare.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_crc32.h b/libs/SDL2/include/SDL_test_crc32.h
index cf9ea23d..572a3d95 100644
--- a/libs/SDL2/include/SDL_test_crc32.h
+++ b/libs/SDL2/include/SDL_test_crc32.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_font.h b/libs/SDL2/include/SDL_test_font.h
index 42696d74..3378ea85 100644
--- a/libs/SDL2/include/SDL_test_font.h
+++ b/libs/SDL2/include/SDL_test_font.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_fuzzer.h b/libs/SDL2/include/SDL_test_fuzzer.h
index 59c89a50..9603652b 100644
--- a/libs/SDL2/include/SDL_test_fuzzer.h
+++ b/libs/SDL2/include/SDL_test_fuzzer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_harness.h b/libs/SDL2/include/SDL_test_harness.h
index b3389315..74c0950c 100644
--- a/libs/SDL2/include/SDL_test_harness.h
+++ b/libs/SDL2/include/SDL_test_harness.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_images.h b/libs/SDL2/include/SDL_test_images.h
index 9b9f979b..8c64b4fe 100644
--- a/libs/SDL2/include/SDL_test_images.h
+++ b/libs/SDL2/include/SDL_test_images.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_log.h b/libs/SDL2/include/SDL_test_log.h
index 968d9b32..73a5c016 100644
--- a/libs/SDL2/include/SDL_test_log.h
+++ b/libs/SDL2/include/SDL_test_log.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_md5.h b/libs/SDL2/include/SDL_test_md5.h
index 52ea2c9a..f2d9a7d7 100644
--- a/libs/SDL2/include/SDL_test_md5.h
+++ b/libs/SDL2/include/SDL_test_md5.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_test_random.h b/libs/SDL2/include/SDL_test_random.h
index 925205df..91c36526 100644
--- a/libs/SDL2/include/SDL_test_random.h
+++ b/libs/SDL2/include/SDL_test_random.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_thread.h b/libs/SDL2/include/SDL_thread.h
index 797767f8..377e6c73 100644
--- a/libs/SDL2/include/SDL_thread.h
+++ b/libs/SDL2/include/SDL_thread.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_timer.h b/libs/SDL2/include/SDL_timer.h
index 1f2a0206..e0d3785e 100644
--- a/libs/SDL2/include/SDL_timer.h
+++ b/libs/SDL2/include/SDL_timer.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_touch.h b/libs/SDL2/include/SDL_touch.h
index 68ff1714..2643e367 100644
--- a/libs/SDL2/include/SDL_touch.h
+++ b/libs/SDL2/include/SDL_touch.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_types.h b/libs/SDL2/include/SDL_types.h
index 1a1877fa..5118af21 100644
--- a/libs/SDL2/include/SDL_types.h
+++ b/libs/SDL2/include/SDL_types.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_version.h b/libs/SDL2/include/SDL_version.h
index 0b364d07..de1f1605 100644
--- a/libs/SDL2/include/SDL_version.h
+++ b/libs/SDL2/include/SDL_version.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/SDL_video.h b/libs/SDL2/include/SDL_video.h
index f466165b..52179f3c 100644
--- a/libs/SDL2/include/SDL_video.h
+++ b/libs/SDL2/include/SDL_video.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -53,8 +53,8 @@ extern "C" {
typedef struct
{
Uint32 format; /**< pixel format */
- int w; /**< width */
- int h; /**< height */
+ int w; /**< width, in screen coordinates */
+ int h; /**< height, in screen coordinates */
int refresh_rate; /**< refresh rate (or zero for unspecified) */
void *driverdata; /**< driver-specific data, initialize to 0 */
} SDL_DisplayMode;
@@ -95,6 +95,7 @@ typedef struct SDL_Window SDL_Window;
*/
typedef enum
{
+ /* !!! FIXME: change this to name = (1<0
- * \param h The height of the window, must be >0
+ * \param w The width of the window, in screen coordinates. Must be >0.
+ * \param h The height of the window, in screen coordinates. Must be >0.
*
* \note You can't change the size of a fullscreen window, it automatically
* matches the size of the display mode.
*
+ * The window size in screen coordinates may differ from the size in pixels, if
+ * the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
+ * high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
+ * SDL_GetRendererOutputSize() to get the real client area size in pixels.
+ *
* \sa SDL_GetWindowSize()
*/
extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
@@ -556,14 +597,40 @@ extern DECLSPEC void SDLCALL SDL_SetWindowSize(SDL_Window * window, int w,
* \brief Get the size of a window's client area.
*
* \param window The window to query.
- * \param w Pointer to variable for storing the width, may be NULL
- * \param h Pointer to variable for storing the height, may be NULL
+ * \param w Pointer to variable for storing the width, in screen
+ * coordinates. May be NULL.
+ * \param h Pointer to variable for storing the height, in screen
+ * coordinates. May be NULL.
+ *
+ * The window size in screen coordinates may differ from the size in pixels, if
+ * the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a platform with
+ * high-dpi support (e.g. iOS or OS X). Use SDL_GL_GetDrawableSize() or
+ * SDL_GetRendererOutputSize() to get the real client area size in pixels.
*
* \sa SDL_SetWindowSize()
*/
extern DECLSPEC void SDLCALL SDL_GetWindowSize(SDL_Window * window, int *w,
int *h);
+/**
+ * \brief Get the size of a window's borders (decorations) around the client area.
+ *
+ * \param window The window to query.
+ * \param top Pointer to variable for storing the size of the top border. NULL is permitted.
+ * \param left Pointer to variable for storing the size of the left border. NULL is permitted.
+ * \param bottom Pointer to variable for storing the size of the bottom border. NULL is permitted.
+ * \param right Pointer to variable for storing the size of the right border. NULL is permitted.
+ *
+ * \return 0 on success, or -1 if getting this information is not supported.
+ *
+ * \note if this function fails (returns -1), the size values will be
+ * initialized to 0, 0, 0, 0 (if a non-NULL pointer is provided), as
+ * if the window in question was borderless.
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowBordersSize(SDL_Window * window,
+ int *top, int *left,
+ int *bottom, int *right);
+
/**
* \brief Set the minimum size of a window's client area.
*
@@ -779,6 +846,58 @@ extern DECLSPEC int SDLCALL SDL_SetWindowBrightness(SDL_Window * window, float b
*/
extern DECLSPEC float SDLCALL SDL_GetWindowBrightness(SDL_Window * window);
+/**
+ * \brief Set the opacity for a window
+ *
+ * \param window The window which will be made transparent or opaque
+ * \param opacity Opacity (0.0f - transparent, 1.0f - opaque) This will be
+ * clamped internally between 0.0f and 1.0f.
+ *
+ * \return 0 on success, or -1 if setting the opacity isn't supported.
+ *
+ * \sa SDL_GetWindowOpacity()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowOpacity(SDL_Window * window, float opacity);
+
+/**
+ * \brief Get the opacity of a window.
+ *
+ * If transparency isn't supported on this platform, opacity will be reported
+ * as 1.0f without error.
+ *
+ * \param window The window in question.
+ * \param out_opacity Opacity (0.0f - transparent, 1.0f - opaque)
+ *
+ * \return 0 on success, or -1 on error (invalid window, etc).
+ *
+ * \sa SDL_SetWindowOpacity()
+ */
+extern DECLSPEC int SDLCALL SDL_GetWindowOpacity(SDL_Window * window, float * out_opacity);
+
+/**
+ * \brief Sets the window as a modal for another window (TODO: reconsider this function and/or its name)
+ *
+ * \param modal_window The window that should be modal
+ * \param parent_window The parent window
+ *
+ * \return 0 on success, or -1 otherwise.
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowModalFor(SDL_Window * modal_window, SDL_Window * parent_window);
+
+/**
+ * \brief Explicitly sets input focus to the window.
+ *
+ * You almost certainly want SDL_RaiseWindow() instead of this function. Use
+ * this with caution, as you might give focus to a window that's completely
+ * obscured by other windows.
+ *
+ * \param window The window that should get the input focus
+ *
+ * \return 0 on success, or -1 otherwise.
+ * \sa SDL_RaiseWindow()
+ */
+extern DECLSPEC int SDLCALL SDL_SetWindowInputFocus(SDL_Window * window);
+
/**
* \brief Set the gamma ramp for a window.
*
@@ -1009,11 +1128,12 @@ extern DECLSPEC SDL_Window* SDLCALL SDL_GL_GetCurrentWindow(void);
extern DECLSPEC SDL_GLContext SDLCALL SDL_GL_GetCurrentContext(void);
/**
- * \brief Get the size of a window's underlying drawable (for use with glViewport).
+ * \brief Get the size of a window's underlying drawable in pixels (for use
+ * with glViewport).
*
* \param window Window from which the drawable size should be queried
- * \param w Pointer to variable for storing the width, may be NULL
- * \param h Pointer to variable for storing the height, may be NULL
+ * \param w Pointer to variable for storing the width in pixels, may be NULL
+ * \param h Pointer to variable for storing the height in pixels, may be NULL
*
* This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
* drawable, i.e. the window was created with SDL_WINDOW_ALLOW_HIGHDPI on a
diff --git a/libs/SDL2/include/begin_code.h b/libs/SDL2/include/begin_code.h
index c032400f..04e78c64 100644
--- a/libs/SDL2/include/begin_code.h
+++ b/libs/SDL2/include/begin_code.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/include/close_code.h b/libs/SDL2/include/close_code.h
index 73f6c818..d908b00e 100644
--- a/libs/SDL2/include/close_code.h
+++ b/libs/SDL2/include/close_code.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/Linux/SDL_config_premake.h b/libs/SDL2/premake/Linux/SDL_config_premake.h
index c865684b..1bc2e4d7 100644
--- a/libs/SDL2/premake/Linux/SDL_config_premake.h
+++ b/libs/SDL2/premake/Linux/SDL_config_premake.h
@@ -1,7 +1,7 @@
/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/MinGW/SDL_config_premake.h b/libs/SDL2/premake/MinGW/SDL_config_premake.h
index 7ec79a3b..cf8c1651 100644
--- a/libs/SDL2/premake/MinGW/SDL_config_premake.h
+++ b/libs/SDL2/premake/MinGW/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/VisualC/VS2008/SDL_config_premake.h b/libs/SDL2/premake/VisualC/VS2008/SDL_config_premake.h
index 7139c23c..8d1d31d9 100644
--- a/libs/SDL2/premake/VisualC/VS2008/SDL_config_premake.h
+++ b/libs/SDL2/premake/VisualC/VS2008/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/VisualC/VS2010/SDL_config_premake.h b/libs/SDL2/premake/VisualC/VS2010/SDL_config_premake.h
index 7139c23c..8d1d31d9 100644
--- a/libs/SDL2/premake/VisualC/VS2010/SDL_config_premake.h
+++ b/libs/SDL2/premake/VisualC/VS2010/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/VisualC/VS2012/SDL_config_premake.h b/libs/SDL2/premake/VisualC/VS2012/SDL_config_premake.h
index 7139c23c..8d1d31d9 100644
--- a/libs/SDL2/premake/VisualC/VS2012/SDL_config_premake.h
+++ b/libs/SDL2/premake/VisualC/VS2012/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/Xcode-iOS/SDL_config_premake.h b/libs/SDL2/premake/Xcode-iOS/SDL_config_premake.h
index 47b47ef7..c4a8a1bf 100644
--- a/libs/SDL2/premake/Xcode-iOS/SDL_config_premake.h
+++ b/libs/SDL2/premake/Xcode-iOS/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/Xcode/Xcode3/SDL_config_premake.h b/libs/SDL2/premake/Xcode/Xcode3/SDL_config_premake.h
index 878b3c20..35da85c7 100644
--- a/libs/SDL2/premake/Xcode/Xcode3/SDL_config_premake.h
+++ b/libs/SDL2/premake/Xcode/Xcode3/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/Xcode/Xcode4/SDL_config_premake.h b/libs/SDL2/premake/Xcode/Xcode4/SDL_config_premake.h
index 878b3c20..35da85c7 100644
--- a/libs/SDL2/premake/Xcode/Xcode4/SDL_config_premake.h
+++ b/libs/SDL2/premake/Xcode/Xcode4/SDL_config_premake.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_cygwin.template.h b/libs/SDL2/premake/config/SDL_config_cygwin.template.h
index 8f38d44c..b5886707 100644
--- a/libs/SDL2/premake/config/SDL_config_cygwin.template.h
+++ b/libs/SDL2/premake/config/SDL_config_cygwin.template.h
@@ -1,7 +1,7 @@
/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_iphoneos.template.h b/libs/SDL2/premake/config/SDL_config_iphoneos.template.h
index 2a965947..956e40a7 100644
--- a/libs/SDL2/premake/config/SDL_config_iphoneos.template.h
+++ b/libs/SDL2/premake/config/SDL_config_iphoneos.template.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_linux.template.h b/libs/SDL2/premake/config/SDL_config_linux.template.h
index d35037cf..9b530c9d 100644
--- a/libs/SDL2/premake/config/SDL_config_linux.template.h
+++ b/libs/SDL2/premake/config/SDL_config_linux.template.h
@@ -1,7 +1,7 @@
/* include/SDL_config.h. Generated from SDL_config.h.in by configure. */
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_macosx.template.h b/libs/SDL2/premake/config/SDL_config_macosx.template.h
index 1a4d8d56..7c25d9bc 100644
--- a/libs/SDL2/premake/config/SDL_config_macosx.template.h
+++ b/libs/SDL2/premake/config/SDL_config_macosx.template.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_minimal.template.h b/libs/SDL2/premake/config/SDL_config_minimal.template.h
index adf60ed9..f209a09f 100644
--- a/libs/SDL2/premake/config/SDL_config_minimal.template.h
+++ b/libs/SDL2/premake/config/SDL_config_minimal.template.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/config/SDL_config_windows.template.h b/libs/SDL2/premake/config/SDL_config_windows.template.h
index 9274f620..25b68a55 100644
--- a/libs/SDL2/premake/config/SDL_config_windows.template.h
+++ b/libs/SDL2/premake/config/SDL_config_windows.template.h
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
- Copyright (C) 1997-2015 Sam Lantinga
+ Copyright (C) 1997-2016 Sam Lantinga
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/premake4.lua b/libs/SDL2/premake/premake4.lua
index eb2dfcd1..1202c0e9 100755
--- a/libs/SDL2/premake/premake4.lua
+++ b/libs/SDL2/premake/premake4.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/SDL2.lua b/libs/SDL2/premake/projects/SDL2.lua
index 923f953a..ef946f4e 100755
--- a/libs/SDL2/premake/projects/SDL2.lua
+++ b/libs/SDL2/premake/projects/SDL2.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/SDL2main.lua b/libs/SDL2/premake/projects/SDL2main.lua
index 771a169c..3dffb52a 100755
--- a/libs/SDL2/premake/projects/SDL2main.lua
+++ b/libs/SDL2/premake/projects/SDL2main.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/SDL2test.lua b/libs/SDL2/premake/projects/SDL2test.lua
index 0ac6382c..9bf9664c 100755
--- a/libs/SDL2/premake/projects/SDL2test.lua
+++ b/libs/SDL2/premake/projects/SDL2test.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/accelerometer.lua b/libs/SDL2/premake/projects/accelerometer.lua
index df24a7ba..d5cb18ea 100755
--- a/libs/SDL2/premake/projects/accelerometer.lua
+++ b/libs/SDL2/premake/projects/accelerometer.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/checkkeys.lua b/libs/SDL2/premake/projects/checkkeys.lua
index e1709403..0711d33d 100755
--- a/libs/SDL2/premake/projects/checkkeys.lua
+++ b/libs/SDL2/premake/projects/checkkeys.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/fireworks.lua b/libs/SDL2/premake/projects/fireworks.lua
index 110c6547..dd0b84a6 100755
--- a/libs/SDL2/premake/projects/fireworks.lua
+++ b/libs/SDL2/premake/projects/fireworks.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/happy.lua b/libs/SDL2/premake/projects/happy.lua
index b2764801..37839ae7 100755
--- a/libs/SDL2/premake/projects/happy.lua
+++ b/libs/SDL2/premake/projects/happy.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/keyboard.lua b/libs/SDL2/premake/projects/keyboard.lua
index 6cd31d1b..22d6f8fb 100755
--- a/libs/SDL2/premake/projects/keyboard.lua
+++ b/libs/SDL2/premake/projects/keyboard.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/loopwave.lua b/libs/SDL2/premake/projects/loopwave.lua
index 391dbdad..cf02865b 100755
--- a/libs/SDL2/premake/projects/loopwave.lua
+++ b/libs/SDL2/premake/projects/loopwave.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/mixer.lua b/libs/SDL2/premake/projects/mixer.lua
index bfcd5e64..af571829 100755
--- a/libs/SDL2/premake/projects/mixer.lua
+++ b/libs/SDL2/premake/projects/mixer.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/rectangles.lua b/libs/SDL2/premake/projects/rectangles.lua
index 071f8383..0721d32e 100755
--- a/libs/SDL2/premake/projects/rectangles.lua
+++ b/libs/SDL2/premake/projects/rectangles.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/testatomic.lua b/libs/SDL2/premake/projects/testatomic.lua
index ecf5adb4..5b039b81 100755
--- a/libs/SDL2/premake/projects/testatomic.lua
+++ b/libs/SDL2/premake/projects/testatomic.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/testaudioinfo.lua b/libs/SDL2/premake/projects/testaudioinfo.lua
index 9ee89f48..cee89424 100755
--- a/libs/SDL2/premake/projects/testaudioinfo.lua
+++ b/libs/SDL2/premake/projects/testaudioinfo.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/testautomation.lua b/libs/SDL2/premake/projects/testautomation.lua
index 43e6dd83..ebaece77 100755
--- a/libs/SDL2/premake/projects/testautomation.lua
+++ b/libs/SDL2/premake/projects/testautomation.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/testdraw2.lua b/libs/SDL2/premake/projects/testdraw2.lua
index 2431484f..29ab2909 100755
--- a/libs/SDL2/premake/projects/testdraw2.lua
+++ b/libs/SDL2/premake/projects/testdraw2.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
diff --git a/libs/SDL2/premake/projects/testdrawchessboard.lua b/libs/SDL2/premake/projects/testdrawchessboard.lua
index b074d7f4..90b8b654 100755
--- a/libs/SDL2/premake/projects/testdrawchessboard.lua
+++ b/libs/SDL2/premake/projects/testdrawchessboard.lua
@@ -1,4 +1,4 @@
--- Copyright (C) 1997-2015 Sam Lantinga
+-- Copyright (C) 1997-2016 Sam Lantinga