|
f225af0c
|
2018-08-22T21:48:28
|
|
Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes.
Documented the values returned by the accelerometer and gyroscope sensors
|
|
e061a92d
|
2018-08-02T16:03:47
|
|
Some drag'and'drop improvements.
First: disable d'n'd events by default; most apps don't need these at all, and
if an app doesn't explicitly handle these, each drop on the window will cause
a memory leak if the events are enabled. This follows the guidelines we have
for SDL_TEXTINPUT events already.
Second: when events are enabled or disabled, signal the video layer, as it
might be able to inform the OS, causing UI changes or optimizations (for
example, dropping a file icon on a Cocoa app that isn't accepting drops will
cause macOS to show a rejection animation instead of the drop operation just
vanishing into the ether, X11 might show a different cursor when dragging
onto an accepting window, etc).
Third: fill in the drop event details in the test library and enable the
events in testwm.c for making sure this all works as expected.
|
|
08de74ec
|
2018-06-13T14:45:02
|
|
use the 'aborts' pragma of Watcom for SDL_NORETURN functions
SDL_ExitProcess(), SDL_AbortAssertion() and SDLTest_BailOut().
(Commit 303c1e0fb0cf for bug #4100 removed SDL_NORETURN from
SDL_ExitProcess() and SDL_AbortAssertion() in order to avoid
warnings from windows builds, but that's temporary I guess..)
|
|
3ea093cc
|
2018-02-25T10:15:00
|
|
SDL_test_fuzzer.c: fix strict aliasing warnings by using a union.
|
|
e3cc5b2c
|
2018-01-03T10:03:25
|
|
Updated copyright for 2018
|
|
1c43705b
|
2017-12-09T13:05:56
|
|
Fixed compiler warning
|
|
cf923648
|
2017-10-13T09:50:04
|
|
Fixed bug 3879 - add missing SDLCALL to SDLTest_TrackedMalloc & co.
Ozkan Sezer
The attached trivial patch adds missing SDLCALL to SDLTest_TrackedMalloc & co.
|
|
22b6df51
|
2017-10-12T14:46:28
|
|
Use the lower-case hex output to match other stack trace printouts
|
|
70791956
|
2017-10-12T14:44:54
|
|
Fixed compiler warning
|
|
5fc20176
|
2017-10-12T14:25:07
|
|
Fixed bug 3877 - missing SDLCALL in SDLTest_ExampleHitTestCallback
Ozkan Sezer
Following trivial patch adds missing SDLCALL to SDLTest_ExampleHitTestCallback()
|
|
41a60394
|
2017-10-12T14:20:17
|
|
Added missing file
|
|
9c580e14
|
2017-10-12T13:44:28
|
|
Added functions to query and set the SDL memory allocation functions:
SDL_GetMemoryFunctions()
SDL_SetMemoryFunctions()
SDL_GetNumAllocations()
|
|
f4f9e39f
|
2017-10-12T08:41:11
|
|
Fixed bug 3874 - Compiler warnings SDL_Surface.c and SDL_cocoakeyboard.m
|
|
0fea9164
|
2017-09-22T17:29:32
|
|
Added an example for SDL_SetWindowHitTest() when you create a borderless resizable window.
|
|
e8059221
|
2017-09-08T18:26:25
|
|
Fixed bug 3806 - Fixes for MSVC compiler warnings
Simon Hug
These are the remaining compiler warnings I see in the current tip cb049cae7c3c.
- SDL_test_log.c defines _CRT_SECURE_NO_WARNINGS without checking if it was already set.
- SDL_windowskeyboard.c converts integers to pointers without going over the (U)INT_PTR types. That bothers MSVC.
|
|
4657d9f3
|
2017-09-08T04:53:31
|
|
We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
|
|
65c55fdd
|
2017-09-08T04:38:46
|
|
Fixed build
|
|
b0b3da77
|
2017-09-08T04:14:05
|
|
Added a function to clean up test text drawing
|
|
9ca62923
|
2017-08-29T23:14:39
|
|
Added some missing render capability flags
|
|
c3d428d4
|
2017-08-29T23:12:26
|
|
Fixed line breaks in verbose test logging output
|
|
94e0f3e9
|
2017-08-29T22:52:17
|
|
Added some debug messaging for previously unhandled events
|
|
ae667da6
|
2017-08-29T15:52:49
|
|
Fixed a bunch of compiler warnings.
|
|
ded5b3a4
|
2017-08-27T21:05:18
|
|
Fixed crash at shutdown if the window couldn't be created
|
|
25e3a1ec
|
2017-08-27T22:15:57
|
|
vulkan: Initial Vulkan support!
This work was done by Jacob Lifshay and Mark Callow; I'm just merging it
into revision control.
|
|
b2e2bcc2
|
2017-08-12T20:21:34
|
|
Added test debug logs for additional event types
|
|
3c852360
|
2017-08-11T10:42:26
|
|
Fixed bug 3646 - SDL_test_common.c: Add key bindings for testing SDL_SetWindowPosition
Eric Wasylishen
Alt-Up/Down/Left/Right switches between displays using SDL_WINDOWPOS_CENTERED_DISPLAY
Shift-Up/Down/Left/Right shifts the window by 100px
|
|
cff9e5a8
|
2017-05-18T16:29:10
|
|
test: info now reports usable display bounds and DPI (thanks, Eric!).
Fixes Bugzilla #3652.
|
|
33ff5bd1
|
2017-02-03T23:30:29
|
|
Fixed typo in log message.
|
|
800a72eb
|
2017-01-31T10:19:56
|
|
Switch stderr output to SDL_Log() so it shows up on Windows and mobile devices
|
|
45b774e3
|
2017-01-01T18:33:28
|
|
Updated copyright for 2017
|
|
232ae688
|
2016-11-23T17:20:28
|
|
Still more compiler warning fixes for various platforms.
|
|
40c2a6fb
|
2016-11-23T11:49:26
|
|
Fixed more compiler warnings.
|
|
eaca3958
|
2016-11-20T21:24:09
|
|
Fixed bug 3494 - SDL_test_fuzzer.c fails compile since r10604
Ozkan Sezer
As of hg rev. 10604 (http://hg.libsdl.org/SDL/rev/4fe01fd25855),
SDL_test_fuzzer.c fails to build again
|
|
818d1d3e
|
2016-11-15T01:30:08
|
|
Fixed bug 1646 - Warnings from clang with -Weverything
|
|
c1e292fc
|
2016-11-13T23:09:42
|
|
Fixed build error with missing function prototype in the SDL_test_harness.h header
|
|
57d01d7d
|
2016-11-13T22:57:41
|
|
Patch from Sylvain to fix clang warnings
|
|
74e1dd4c
|
2016-11-11T13:14:00
|
|
Define _GNU_SOURCE when building SDL
|
|
9dfe5400
|
2016-10-01T10:38:15
|
|
We should be using a string constant for the strftime format string
|
|
7edd2261
|
2016-10-01T10:36:24
|
|
Fix "format not a string literal" errors
With GCC 6.1.
https://bugzilla.libsdl.org/show_bug.cgi?id=3375
|
|
f1e0b9af
|
2016-09-29T16:10:08
|
|
Added debug output for new window events
|
|
f4d33fcb
|
2016-06-25T19:40:44
|
|
Fixed compile warnings in test library about formats strings not being literals.
Partially fixes Bugzilla #3375.
|
|
1d1ba58f
|
2016-01-06T22:39:29
|
|
Fixed compile warnings about uninitialized variables in test library.
Found by buildbot.
|
|
3bdaf4c6
|
2016-01-05T02:46:10
|
|
Added SDL_SetWindowOpacity() and SDL_GetWindowOpacity().
This is currently implemented for X11, Cocoa, Windows, and DirectFB.
This patch is based on work in Unreal Engine 4's fork of SDL,
compliments of Epic Games.
|
|
68a32728
|
2016-01-02T10:38:51
|
|
Fixed sed error on Mac OS X and updated copyright on a few last files
|
|
42065e78
|
2016-01-02T10:10:34
|
|
Updated copyright to 2016
|
|
4679195d
|
2015-07-06T21:02:20
|
|
Fixed memory leak in test harness.
Found by Cppcheck.
|
|
0e45984f
|
2015-06-21T17:33:46
|
|
Fixed crash if initialization of EGL failed but was tried again later.
The internal function SDL_EGL_LoadLibrary() did not delete and remove a mostly
uninitialized data structure if loading the library first failed. A later try to
use EGL then skipped initialization and assumed it was previously successful
because the data structure now already existed. This led to at least one crash
in the internal function SDL_EGL_ChooseConfig() because a NULL pointer was
dereferenced to make a call to eglBindAPI().
|
|
2e2b84fb
|
2015-05-26T16:31:11
|
|
Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!).
Fixes Bugzilla #2721.
|
|
2c4a6ea0
|
2015-05-26T06:27:46
|
|
Updated the copyright year to 2015
|
|
b72938c8
|
2015-04-20T12:22:44
|
|
Windows: Always set the system timer resolution to 1ms by default.
An existing hint lets apps that don't need the timer resolution changed avoid
this, to save battery, etc, but this fixes several problems in timing, audio
callbacks not firing fast enough, etc.
Fixes Bugzilla #2944.
|
|
fe6c797c
|
2015-04-10T23:30:31
|
|
Fixed an iOS view orientation issue when SDL_GL_CreateContext or SDL_CreateRenderer is called.
|
|
73feb8c0
|
2015-03-18T00:56:33
|
|
Fixed a compiler warning.
|
|
b88ca1b4
|
2015-02-10T16:28:56
|
|
the last parameter of XChangeProperty is the number of elements.. and when the element format is 32.. the element is "long" so we have 5 long elements here.
Yes this seems confusing as on mac+linux Long is either 32 or 64bits depending on the architecture, but this is how the X11 protocol is defined. Thus 5 is the correct value for the nelts here. Not 5 or 10 depending on the architecture.
More info on the confusion https://bugs.freedesktop.org/show_bug.cgi?id=16802
|
|
b48e54aa
|
2015-01-26T22:00:29
|
|
Fixed bug 2802 - [patch] Fix android build compiling in wrong filesystem implementation
Jonas Kulla
The configure script didn't differentiate between Linux and Android, unconditionally compiling in the unix implementation of SDL_sysfilesystem.c.
I'm probably one of the very few people building SDL for android using classic configure + standalone toolchain, so this has gone undetected all along.
|
|
16f3cbfc
|
2014-12-26T23:16:54
|
|
Cleaned up some compiler warnings.
|
|
73daadb7
|
2014-12-03T12:23:17
|
|
switch to use SDL_PRI* macros for long long formatting everywhere.
|
|
7810d198
|
2014-12-03T11:04:07
|
|
fix incorrect struct member name in test code for wheel direction
|
|
70438be2
|
2014-12-03T10:55:23
|
|
WinRT: fixed bug whereby SDL would override an app's default orientation
WinRT apps can set a default, preferred orientation via a .appxmanifest file.
SDL was overriding this on app startup, and making the app use all possible
orientations (landscape and portrait).
Thanks to Eric Wing for the heads up on this!
|
|
52760dcd
|
2014-11-30T20:55:27
|
|
Fix assert format strings/parameters in testautomation modules; improve output of SDL_CompareSurfaces to aid debugging; update platform_testSetErrorInvalidInput for SDL changes
|
|
bd4dd2b5
|
2014-11-23T21:10:55
|
|
update logging of events in test core
- log unknown as HEX instead of int (makes it easier to identify)
- add dollar gesture and multi gesture events
- add scroll reverse for mouse wheel
|
|
9c398852
|
2014-11-22T22:20:40
|
|
Corrected header file documentation comment.
|
|
24c86b55
|
2014-09-11T19:24:42
|
|
[X11] Reconcile logical keyboard state with physical state on FocusIn
since the window system doesn't do it for us like other platforms.
This prevents sticky keys and missed keys when going in and out
of focus, for example Alt would appear to stick if switching away
from an SDL app with Alt-Tab and had to be pressed again.
CR: Sam
|
|
6fef39d6
|
2014-08-06T11:34:54
|
|
Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers
|
|
ac112e5f
|
2014-07-06T20:41:39
|
|
Fix option for forced run of disabled tests in test harness
|
|
b29740b8
|
2014-06-25T17:06:12
|
|
Merged Ryan's SDL-gui-backend branch.
Adds three APIs, and implements them on X11, Cocoa, and Windows:
- SDL_CaptureMouse()
- SDL_GetGlobalMouseState()
- SDL_SetWindowHitTest()
|
|
84369567
|
2014-06-25T16:16:55
|
|
Changed SDL_GetAbsoluteMouseState() to SDL_GetGlobalMouseState().
This matches naming conventions in the main repository, between
SDL_GetRelativeMouseState() and SDL_WarpMouseGlobal().
|
|
3344db40
|
2014-06-23T11:06:50
|
|
Don't redefine standard macros, use SDL specific macros instead to avoid compiler warnings
|
|
7e52722d
|
2014-06-20T11:10:16
|
|
Fix compiler warnings in Native Client and Linux builds.
|
|
04a0836b
|
2014-06-05T15:37:33
|
|
Turns out visualstudio does not like PRIu64, soo lets just cast it to llu.
|
|
1f716769
|
2014-06-05T15:29:23
|
|
Fix warnings, only major one being an SDL_SetError not providing enough arguments.
|
|
6671aa2a
|
2014-06-05T09:49:45
|
|
Code analysis annotations found a legitimate bug!
|
|
b861efde
|
2014-06-05T00:03:33
|
|
Implemented SDL_GetAbsoluteMouseState().
X11 only for now, but this should be doable on every platform, I think.
|
|
da6d9a9f
|
2014-06-04T10:56:56
|
|
Added annotations to help code analysis tools
CR: Bruce Dawson
|
|
4ef6edda
|
2014-05-30T01:48:08
|
|
Make some printf() calls into SDL_Log() so I can see them on Windows. :)
|
|
b7d2c0e9
|
2014-05-24T01:30:37
|
|
Implemented SDL_CaptureMouse().
|
|
3dcb451f
|
2014-04-09T21:29:19
|
|
Added a README file regarding WinRT support
To note, this file is currently formatted with CRLF line endings, rather than
LF, to allow the file to be viewed with Notepad.
|
|
d5c109b2
|
2014-04-05T16:25:30
|
|
Fail if we couldn't create the specified renderer
|
|
26823b1b
|
2014-03-23T23:09:22
|
|
Added an event SDL_RENDER_DEVICE_RESET, which is triggered on Direct3D 11 when the device has been lost and all textures need to be recreated.
|
|
7a36070a
|
2014-03-11T07:17:56
|
|
Fix bug/add test coverage for SDLTest_GenerateRunSeed helper; improve test harness adding output of repro steps for failures; improve negative test for SDL_GetError/SDL_SetError
|
|
e663b4eb
|
2014-03-01T09:50:52
|
|
Fixed bug 2423 - timeBeginPeriod & timeEndPeriod mismatch
Coriiander
In src\timer\windows\SDL_systimer.c there is an error with regards to timeBeginPeriod and timeEndPeriod. These functions typically get called when no high resolution timer is available, and GetTickCount is not used.
According to MSDN (link: http://msdn.microsoft.com/en-us/library/windows/desktop/dd757624(v=vs.85).aspx), for every call to timeBeginPeriod a subsequent call to timeEndPeriod is required. While SDL is currently doing this, it fails to call timeEndPeriod when cleaning up/shutting down SDL. Please note that these functions affect things on a system level. Failing to call timeEndPeriod, disables applications for using WINMM-timers after usage&shutdown of SDL, as effectively they the mechanism is now broken.
Solution:
Ensure this code gets called when shutting down the timer subsystem:
#ifndef USE_GETTICKCOUNT
if (!hires_timer_available)
{
timeSetPeriod(0);
}
#endif
|
|
c52c9105
|
2014-02-13T11:05:30
|
|
Added SDL_DXGIGetOutputInfo which returns the adapter and output indices that are used to create DX10 and DX11 devices and swap chains on a particular display.
CR: SamL
|
|
9f2509da
|
2014-02-10T10:02:42
|
|
Exposed the font character size and SDLTest_DrawCharacter() to make it easier to do custom debug text layout
|
|
58edac3e
|
2014-02-02T00:53:27
|
|
Fixed bug 2374 - Update copyright for 2014...
Is it that time already??
|
|
68f2fe64
|
2014-01-29T00:29:14
|
|
Fixed spaces in source file license comment.
|
|
9e90acdf
|
2014-01-18T11:47:03
|
|
Make sure you clean up the associated renderer when destroying a window.
|
|
a442f121
|
2014-01-15T11:08:55
|
|
Test: Add Shift-Enter to switch between FS and desktop FS.
|
|
a6a56af9
|
2014-01-15T10:40:14
|
|
Tests: Refactor key modifier checking.
|
|
8e0dfef1
|
2013-12-23T15:55:47
|
|
Print events with SDL_Log() so they show up in Visual Studio debug output
Added some joystick and controller events to the set that are printed out.
|
|
74692835
|
2013-12-23T12:17:52
|
|
Added support for double-clicks, through a new "clicks" field in the mouse button event.
|
|
f848adff
|
2013-11-29T10:06:08
|
|
Improve Android pause/resume behavior.
|
|
48954ba1
|
2013-11-18T20:22:36
|
|
Accidentally committed debug code
|
|
d75498f6
|
2013-11-18T20:21:45
|
|
Textures need to be freed before renderers
|
|
48cffe33
|
2013-11-18T23:45:46
|
|
Added missing resource release in test source.
|
|
30f7e868
|
2013-11-15T22:01:58
|
|
Added space in the common state structure for render targets
|
|
77a0d3fe
|
2013-11-11T01:59:20
|
|
Toggling fullscreen now takes fullscreen flags
|
|
804e5799
|
2013-10-30T16:39:35
|
|
Fixed common test usage string (was "hidpi", should be "highdpi").
|
|
11d38d69
|
2013-10-21T00:30:05
|
|
Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function
Nitz 2013-08-06 03:53:41 UTC
In function SDLTest_ScreenShot() surface pointer getting leak while return
|
|
12ca3ce3
|
2013-10-17T23:02:29
|
|
Fixed building using MinGW
Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
|
|
89131435
|
2013-10-10T00:49:57
|
|
Adds gl_profile_mask to test framework, uses it in testgles
|
|
52966427
|
2013-10-05T19:09:03
|
|
Fixed bug 2132 - Tests may use invalid SDL_window pointers when windows are closed
norfanin
Some of the tests keep using the pointers of a destroyed SDL_Window when the common event handling handled the close event. The event handler itself does not NULL the pointer after the destruction.
The attached patch adds a loop in the handler that will assign NULL to the destroyed window. It also adds checks to some of the tests so they skip those windows by checking for NULL.
|