Sam Lantinga
a999af88e9
Fixed building using MinGW
...
Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
2013-10-17 23:02:29 -07:00
Sam Lantinga
308e51f9a2
Fixed compiling on Mac OS X, added a system RAM test
2013-10-17 11:56:33 -07:00
Sam Lantinga
2ba754fbe6
Fixed bug 2149 - Don't search for libusbhid except on BSD
...
Joseph Carter
There's a whole set of configure tests for BSD's libusbhid, and they only matter on BSD. However, if you have the library on Linux, it gets pulled in as library bloat. And it's bloat of the highest order since not a single function call to the library is ever made unless you're on a *BSD.
2013-10-13 19:49:45 -07:00
Edward Rudd
02263d4148
added simple Drag & drop test
...
--HG--
extra : rebase_source : e72b921485c5fc5ad1b7c7849802c020d49a06d3
2013-10-12 11:21:40 -04:00
Sam Lantinga
1c7ed8eef6
Updated SDL to version 2.0.1
2013-10-10 21:50:25 -07:00
Gabriel Jacobo
c51c4c0733
Adds gl_profile_mask to test framework, uses it in testgles
2013-10-10 00:49:57 -03:00
Gabriel Jacobo
dca7c7b00d
Fixes testgles and testgl
2013-10-09 11:30:01 -03:00
Sam Lantinga
583198f72e
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.
2013-10-05 19:09:03 -07:00
Sam Lantinga
75add55896
Report an error if creating a render target fails
2013-10-03 21:41:09 -07:00
David Ludwig
d8672afbe4
WinRT: made testthread log output via SDL_Log
...
- this will allow output to be read via Visual C++'s Output pane
2013-08-20 21:55:13 -04:00
David Ludwig
88461d442a
WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d6a8fa507a45)
...
--HG--
rename : README.iOS => README-ios.txt
2013-08-12 22:29:55 -04:00
Philipp Wiesemann
0b13b79137
Corrected comment in test program.
2013-08-10 23:07:28 +02:00
Ryan C. Gordon
c35c4a6f18
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
84e0884077
Update video_getSetWindowSize for windows
2013-08-08 22:10:00 -07:00
Andreas Schiffler
7067bff470
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
1baa9e9bda
Changed test program to be more compatible C.
2013-07-27 21:11:12 +02:00
Philipp Wiesemann
6b494e5eeb
Removed unused variable from test program.
2013-07-27 21:07:07 +02:00
Philipp Wiesemann
69e8c3f950
Removed unused parameter in test program.
2013-07-27 21:05:04 +02:00
Philipp Wiesemann
c03703d90d
Corrected words in comments of test programs.
2013-07-27 21:02:50 +02:00
Sam Lantinga
17482012af
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
e2a14cf5dd
Updated the copyright year for the test programs
2013-07-25 09:51:21 -07:00
Philipp Wiesemann
e44d24ff29
Removed unused variables to fix warnings in test program.
2013-07-24 22:19:01 +02:00
Sam Lantinga
6f83bd0e2a
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
32188834b5
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
fe2bb8805e
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
32e6f653b6
Replaced use of malloc()/free() with SDL_malloc()/SDL_free() in test program.
2013-07-20 21:51:53 +02:00
Philipp Wiesemann
62c31ff5c3
Removed not needed SDL_WINDOW_SHOWN from test programs.
...
See bug #1667 .
2013-07-20 21:47:16 +02:00
Philipp Wiesemann
74e5c8cffd
Replaced use of strcmp() with SDL_strcmp() in tests.
2013-07-20 21:39:54 +02:00
Sam Lantinga
87baf66d18
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
26c456e4ff
Added testing of messagebox with a parent window
2013-07-14 11:57:45 -07:00
Edward Rudd
3a11d95444
add in High DPI support (aka Retina)
...
- based on Jørgen's patch with a few bug fixes
2013-09-20 13:43:00 -04:00
Sam Lantinga
c6b7c0f507
Christoph Mallon: Replace strlen(x) == 0 (O(n)) by x[0] == '\0' (O(1)).
2013-08-29 08:30:21 -07:00
Sam Lantinga
62d7359fd5
Christoph Mallon: Remove pointless if (x) before SDL_FreeSurface(x)
2013-08-29 08:29:51 -07:00
Sam Lantinga
08dfaaa2e6
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
2013-08-29 08:29:21 -07:00
Ryan C. Gordon
bbbade42fa
Fixed testgamecontroller output to make sense.
...
--HG--
extra : rebase_source : 88c573edaf1da2153ada5b4f2c6893e91add2310
2013-08-28 00:07:02 -04:00
Gabriel Jacobo
777731aa02
[Linux] Test config script: Add the X11 library search path if it is not empty
...
If ac_x_libraries is empty it means that the library's found in the default path,
so we skip adding it to the XLIB variable as it screws up the search path.
2013-08-28 12:43:29 -03:00
Gabriel Jacobo
c80fc2858b
Fixes test building
2013-08-28 10:41:25 -03:00
Gabriel Jacobo
298ce1c1a7
OCD fixes: Adds a space after /* (glory to regular expressions!)
2013-08-21 09:47:10 -03:00
Gabriel Jacobo
271e0d67c4
OCD fixes: Adds a space before */
2013-08-21 09:43:09 -03:00
Ryan C. Gordon
2b9a2802b2
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
...
--HG--
extra : rebase_source : c1fac232063443a2880e64f1abda85e0bdb2e710
2013-08-20 19:57:11 -04:00
Gabriel Jacobo
5e78879e76
More non C89 compliant comments
2013-08-20 20:34:40 -03:00
Andreas Schiffler
16a40598f6
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
991e2fb26c
Fixed compiler warnings in test program by using wrapped functions.
2013-07-14 19:56:22 +02:00
Ryan C. Gordon
4e5bd8491f
Fixed compiler warning in testtimer.c
2013-07-14 13:25:49 -04:00
Philipp Wiesemann
4405163127
Fixed compiler warnings in test program by using wrapped functions.
2013-07-14 13:33:54 +02:00
Philipp Wiesemann
5aeed40282
Fixed compiler warnings in test programs by adding return statements.
2013-07-14 13:30:26 +02:00
Philipp Wiesemann
7ca8149a59
Fixed compiler warnings in test programs by adding includes directives.
2013-07-14 13:27:19 +02:00
Philipp Wiesemann
59401ae635
Fixed compiler warnings in test programs.
2013-07-13 21:13:09 +02:00
Philipp Wiesemann
f158b5f47e
Added missing fclose() in test program.
...
Found by Cppcheck.
2013-07-13 21:06:56 +02:00
Philipp Wiesemann
884898cbfc
Removed unused variable and not needed assignment in test program.
...
Found by Cppcheck.
2013-07-13 21:05:13 +02:00