Gabriel Jacobo
8515791f86
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
871473e032
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Ryan C. Gordon
8fe1cf47f2
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
2013-08-20 19:57:11 -04:00
Gabriel Jacobo
f93c78450b
More non C89 compliant comments
2013-08-20 20:34:40 -03:00
Andreas Schiffler
7582a71d05
Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS solution: copy missing dependency
2013-08-14 23:30:10 -07:00
Philipp Wiesemann
37516af4c1
Corrected comment in test program.
2013-08-10 23:07:28 +02:00
Ryan C. Gordon
2fbbecf909
Replaced SDL_HAPTIC_SQUARE with SDL_HAPTIC_LEFTRIGHT.
...
We needed a bit, so we're hoping no one needs this effect, especially when
it's fairly close to SDL_HAPTIC_SINE, we hope.
SDL_HAPTIC_LEFTRIGHT maps to XInput's functionality, so this removes the SINE
code for the XInput driver to keep things clean.
This also makes the simplified Rumble API use SDL_HAPTIC_LEFTRIGHT if
SDL_HAPTIC_SINE isn't available, to keep XInput working.
When we break the ABI, and can extend the supported capabilities field from
a Uint16, we'll add SDL_HAPTIC_SQUARE back in.
This patch is based on work by Ethan Lee.
2013-08-10 13:38:09 -04:00
Andreas Schiffler
2bf318cac0
Update video_getSetWindowSize for windows
2013-08-08 22:10:00 -07:00
Andreas Schiffler
ea498a599d
Fix Bug 2021: Win32: Stack overflow due to recursive SDL_LogOutput on SDL_LogError without console; fix off-by-one error in SDLtest test suite
2013-08-08 21:29:30 -07:00
Philipp Wiesemann
1de7a622ab
Changed test program to be more compatible C.
2013-07-27 21:11:12 +02:00
Philipp Wiesemann
719f8227e0
Removed unused variable from test program.
2013-07-27 21:07:07 +02:00
Philipp Wiesemann
af2f530b05
Removed unused parameter in test program.
2013-07-27 21:05:04 +02:00
Philipp Wiesemann
81450906db
Corrected words in comments of test programs.
2013-07-27 21:02:50 +02:00
Sam Lantinga
aab0048d87
Added example of using the software renderer and window surface API, contributed by Nitin Jain.
2013-07-27 03:48:23 -07:00
Sam Lantinga
7eff345ecb
Updated the copyright year for the test programs
2013-07-25 09:51:21 -07:00
Philipp Wiesemann
d139035d90
Removed unused variables to fix warnings in test program.
2013-07-24 22:19:01 +02:00
Sam Lantinga
976949bd01
Finished updating testoverlay2 for the new API and added it to the Visual Studio 2010 projects
2013-07-23 12:46:22 -07:00
Sam Lantinga
4862c1fc30
Updated blend semantics so blending uses the following formula:
...
dstRGB = (srcRGB * srcA) + (dstRGB * (1-srcA))
dstA = srcA + (dstA * (1-srcA))
This allows proper compositing semantics without requiring premultiplied alpha.
Needs full unit test coverage and bug fixes!
2013-07-23 08:06:49 -07:00
Sam Lantinga
04f86925d1
Fixed bug 1973 - test/Makefile.in fails on Mac OS X with X11 enabled...
...
Ryan C. Gordon
If you have the X11 SDK installed on Mac OS X, you'll build with X11 support, but the Makefile doesn't build anything but the Cocoa testnative code for Mac OS X, which is fine, but then testnative fails to link because testnative.h enables the X11 support based on the SDL config header.
Building the testnativex11.c code on Mac OS X doesn't work because you need to explicitly link with "-L/usr/X11/lib -lX11" if this code is enabled, but you can't link with that by default because the X11 SDK might be missing.
So this needs a little configure magic to do the right thing (or forcibly disabling X11 support on Mac OS X in testnative.h).
2013-07-21 12:47:47 -07:00
Philipp Wiesemann
bfc26adbd5
Replaced use of malloc()/free() with SDL_malloc()/SDL_free() in test program.
2013-07-20 21:51:53 +02:00
Philipp Wiesemann
aa1fee4fdb
Removed not needed SDL_WINDOW_SHOWN from test programs.
...
See bug #1667 .
2013-07-20 21:47:16 +02:00
Philipp Wiesemann
a30b85dd03
Replaced use of strcmp() with SDL_strcmp() in tests.
2013-07-20 21:39:54 +02:00
Sam Lantinga
9f8cddc1ba
Re-enabled other messagebox tests, moved the SDL_Init() call as late as possible to show the circumstances where it's needed.
2013-07-14 12:16:10 -07:00
Sam Lantinga
c1de40a848
Added testing of messagebox with a parent window
2013-07-14 11:57:45 -07:00
Philipp Wiesemann
9b5b5539ee
Fixed compiler warnings in test program by using wrapped functions.
2013-07-14 19:56:22 +02:00
Ryan C. Gordon
c88d5e0b60
Fixed compiler warning in testtimer.c
2013-07-14 13:25:49 -04:00
Philipp Wiesemann
8f0765a932
Fixed compiler warnings in test program by using wrapped functions.
2013-07-14 13:33:54 +02:00
Philipp Wiesemann
642825d6f6
Fixed compiler warnings in test programs by adding return statements.
2013-07-14 13:30:26 +02:00
Philipp Wiesemann
27e8a1013d
Fixed compiler warnings in test programs by adding includes directives.
2013-07-14 13:27:19 +02:00
Philipp Wiesemann
843aed5449
Fixed compiler warnings in test programs.
2013-07-13 21:13:09 +02:00
Philipp Wiesemann
72b5424518
Added missing fclose() in test program.
...
Found by Cppcheck.
2013-07-13 21:06:56 +02:00
Philipp Wiesemann
80d2811c3f
Removed unused variable and not needed assignment in test program.
...
Found by Cppcheck.
2013-07-13 21:05:13 +02:00
Philipp Wiesemann
2b52b168c3
Fixed printf() usage in test program.
...
Found by Cppcheck.
2013-07-13 21:02:23 +02:00
Ryan C. Gordon
35232f9450
Removed some unused variables.
2013-07-11 12:27:39 -04:00
Sam Lantinga
f5306d72d0
Added release/acquire memory barriers to the atomic API
...
* Added a destructor to clean up TLS memory at thread shutdown
* Refactored the TLS code to have platform independent code and a small platform dependent core with a fallback to generic code if platform dependent functions fail.
* Fixed recursion issues with SDL_GetErrBuf()
2013-07-10 18:31:17 -07:00
Sam Lantinga
9c0dea8e15
Implemented an API for thread-local storage: SDL_TLSCreate(), SDL_TLSSet(), SDL_TLSGet()
2013-07-10 02:32:04 -07:00
Edward Rudd
5d3f154808
change fsaa argument for testgl to accept a # of samples for FSAA
2013-07-08 17:51:17 -04:00
Sam Lantinga
35c747cd4d
Added automated test to validate conversion between all supported formats.
2013-07-07 12:34:26 -07:00
Sam Lantinga
70ad624d0f
We don't want to save the alpha modulation, we want to save the blend mode.
2013-06-27 11:49:19 -07:00
Sam Lantinga
7248fa2fff
Updated testshader for the SDL 2.0 API
2013-06-27 11:44:07 -07:00
Sam Lantinga
5caa6632ae
Better text printing for UTF-8 characters
2013-06-24 22:06:50 -07:00
Sam Lantinga
924968d2d0
Updated timer test and fixed performance counter on Mac OS X
2013-06-23 22:19:38 -07:00
Andreas Schiffler
ff47b549bd
Update testsprite2 for visual testing: user fuzzer and add --iteration parameter to enable deterministic screen end-state
2013-06-23 15:00:23 -07:00
Sam Lantinga
13787068f8
Fixed bug 1916 - SDL_Keysym contains a deprecated field for unicode which may be removed.
...
Philipp Wiesemann
SDL_Keysym contains a deprecated field for unicode which may be removed for SDL 2.0 release.
As far as I can tell the field is not set on all "major" platforms and therefore will not be useful for most users. Its existence in a public header therefore becomes (in my opinion) only confusing.
2013-06-18 00:39:47 -07:00
Sam Lantinga
d8b6e04ab1
Fixed SDL building with the minimal configuration
2013-06-13 22:10:10 -07:00
Sam Lantinga
9d951e2d16
Fixed building tests on iOS
2013-06-05 22:56:42 -07:00
Sam Lantinga
1354508566
We already link SDL2_test by default now.
2013-06-05 21:14:26 -07:00
Andreas Schiffler
d87052e8fd
Add missing VS2012 test projects; update VS2010 and VS2012 solutions; update keybord suite for VS compiler warnings
2013-06-03 19:24:18 -07:00
Philipp Wiesemann
0fa5e74ce1
Changed haptic test program to use announced effect type.
2013-06-02 14:18:26 +02:00
Sam Lantinga
e576d9c370
Fixed testnative on Mac OS X, which no longer ships X11 by default.
2013-06-02 01:08:14 -07:00