Sam Lantinga
5c46a0fcb8
We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
2017-09-08 04:53:31 -07:00
Sam Lantinga
87245a86e7
Fixed build
2017-09-08 04:38:46 -07:00
Sam Lantinga
8330eff2f8
Added a function to clean up test text drawing
2017-09-08 04:14:05 -07:00
Sam Lantinga
627ceb911f
Added some missing render capability flags
2017-08-29 23:14:39 -07:00
Sam Lantinga
3dac83b51a
Fixed line breaks in verbose test logging output
2017-08-29 23:12:26 -07:00
Sam Lantinga
dd5d6a9e18
Added some debug messaging for previously unhandled events
2017-08-29 22:52:17 -07:00
Ryan C. Gordon
99577816ec
Fixed a bunch of compiler warnings.
2017-08-29 15:52:49 -04:00
Sam Lantinga
f05a42cd63
Fixed crash at shutdown if the window couldn't be created
2017-08-27 21:05:18 -07:00
Ryan C. Gordon
10d552ae31
vulkan: Initial Vulkan support!
...
This work was done by Jacob Lifshay and Mark Callow; I'm just merging it
into revision control.
2017-08-27 22:15:57 -04:00
Sam Lantinga
59a47120e1
Added test debug logs for additional event types
2017-08-12 20:21:34 -07:00
Sam Lantinga
90603c621d
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
2017-08-11 10:42:26 -07:00
Ryan C. Gordon
41307df3b9
test: info now reports usable display bounds and DPI (thanks, Eric!).
...
Fixes Bugzilla #3652 .
2017-05-18 16:29:10 -04:00
Philipp Wiesemann
b62506ade3
Fixed typo in log message.
2017-02-03 23:30:29 +01:00
Sam Lantinga
162523b2ff
Switch stderr output to SDL_Log() so it shows up on Windows and mobile devices
2017-01-31 10:19:56 -08:00
Sam Lantinga
d77ab77a7a
Updated copyright for 2017
2017-01-01 18:33:28 -08:00
Ryan C. Gordon
67072748a7
Still more compiler warning fixes for various platforms.
2016-11-23 17:20:28 -05:00
Ryan C. Gordon
4cdffc800c
Fixed more compiler warnings.
2016-11-23 11:49:26 -05:00
Sam Lantinga
840200630a
Fixed bug 3494 - SDL_test_fuzzer.c fails compile since r10604
...
Ozkan Sezer
As of hg rev. 10604 (http://hg.libsdl.org/SDL/rev/27d0fb08d755 ),
SDL_test_fuzzer.c fails to build again
2016-11-20 21:24:09 -08:00
Sam Lantinga
7c78a4b28d
Fixed bug 1646 - Warnings from clang with -Weverything
2016-11-15 01:30:08 -08:00
Sam Lantinga
663f5c8763
Fixed build error with missing function prototype in the SDL_test_harness.h header
2016-11-13 23:09:42 -08:00
Sam Lantinga
5e1151257d
Patch from Sylvain to fix clang warnings
2016-11-13 22:57:41 -08:00
Sam Lantinga
8a080aef5c
Define _GNU_SOURCE when building SDL
2016-11-11 13:14:00 -08:00
Sam Lantinga
b50162400f
We should be using a string constant for the strftime format string
2016-10-01 10:38:15 -07:00
Bastien Nocera
d6c44c41f6
Fix "format not a string literal" errors
...
With GCC 6.1.
https://bugzilla.libsdl.org/show_bug.cgi?id=3375
2016-10-01 10:36:24 -07:00
Sam Lantinga
56c0728d36
Added debug output for new window events
2016-09-29 16:10:08 -07:00
Philipp Wiesemann
5dc4f4e208
Fixed compile warnings in test library about formats strings not being literals.
...
Partially fixes Bugzilla #3375 .
2016-06-25 19:40:44 +02:00
Philipp Wiesemann
0bfcdcd7a0
Fixed compile warnings about uninitialized variables in test library.
...
Found by buildbot.
2016-01-06 22:39:29 +01:00
Ryan C. Gordon
72069d9f3d
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.
2016-01-05 02:46:10 -05:00
Sam Lantinga
41012240cc
Fixed sed error on Mac OS X and updated copyright on a few last files
2016-01-02 10:38:51 -08:00
Sam Lantinga
255c182471
Updated copyright to 2016
2016-01-02 10:10:34 -08:00
Philipp Wiesemann
2851aec2cd
Fixed memory leak in test harness.
...
Found by Cppcheck.
2015-07-06 21:02:20 +02:00
Ryan C. Gordon
043f718e2f
Some setups need _GNU_SOURCE to make LLONG_MAX available (thanks, Ozkan!).
...
Fixes Bugzilla #2721 .
2015-05-26 16:31:11 -04:00
Sam Lantinga
78f2198e6c
Updated the copyright year to 2015
2015-05-26 06:27:46 -07:00
Ryan C. Gordon
16e6ce9759
Fixed a compiler warning.
2015-03-18 00:56:33 -04:00
Ryan C. Gordon
2bdda97c77
Cleaned up some compiler warnings.
2014-12-26 23:16:54 -05:00
Edward Rudd
73fc93717d
switch to use SDL_PRI* macros for long long formatting everywhere.
2014-12-03 12:23:17 -05:00
Edward Rudd
8fb82faac0
fix incorrect struct member name in test code for wheel direction
2014-12-03 11:04:07 -05:00
Edward Rudd
219694295b
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
2014-12-03 11:00:56 -05:00
Andreas Schiffler
7ab7d56257
Fix assert format strings/parameters in testautomation modules; improve output of SDL_CompareSurfaces to aid debugging; update platform_testSetErrorInvalidInput for SDL changes
2014-11-30 20:55:27 -08:00
Sam Lantinga
06d9ee1f36
Added NV12 and NV21 texture support for OpenGL and OpenGL ES 2.0 renderers
2014-08-06 11:34:54 -07:00
Andreas Schiffler
81ede0b7ca
Fix option for forced run of disabled tests in test harness
2014-07-06 20:41:39 -07:00
Ryan C. Gordon
e59e44ff6b
Merged Ryan's SDL-gui-backend branch.
...
Adds three APIs, and implements them on X11, Cocoa, and Windows:
- SDL_CaptureMouse()
- SDL_GetGlobalMouseState()
- SDL_SetWindowHitTest()
2014-06-25 17:06:12 -04:00
Ryan C. Gordon
25c056b0ae
Changed SDL_GetAbsoluteMouseState() to SDL_GetGlobalMouseState().
...
This matches naming conventions in the main repository, between
SDL_GetRelativeMouseState() and SDL_WarpMouseGlobal().
2014-06-25 16:16:55 -04:00
Sam Lantinga
2582c3aa59
Don't redefine standard macros, use SDL specific macros instead to avoid compiler warnings
2014-06-23 11:06:50 -07:00
Sam Clegg
5cc37d29ec
Fix compiler warnings in Native Client and Linux builds.
2014-06-20 11:10:16 -03:00
Brandon Schaefer
e6bd634e07
Turns out visualstudio does not like PRIu64, soo lets just cast it to llu.
2014-06-05 15:37:33 -07:00
Brandon Schaefer
aa844a18c6
Fix warnings, only major one being an SDL_SetError not providing enough arguments.
2014-06-05 15:29:23 -07:00
Sam Lantinga
e1f626d3ff
Code analysis annotations found a legitimate bug!
2014-06-05 09:49:45 -07:00
Ryan C. Gordon
1c00a0fc42
Implemented SDL_GetAbsoluteMouseState().
...
X11 only for now, but this should be doable on every platform, I think.
2014-06-05 00:03:33 -04:00
Sam Lantinga
667b15f3c8
Added annotations to help code analysis tools
...
CR: Bruce Dawson
2014-06-04 10:56:56 -07:00