Commit graph

5491 commits

Author SHA1 Message Date
Gabriel Jacobo
09cbdb12c9 Fixes bug 1696, thanks Paul Geerts!
Also adds a bit of information about asset loading on Android.
2013-01-14 20:20:33 -03:00
Andreas Schiffler
a971c6b291 Added timer test suite 2013-01-14 08:14:53 -08:00
Andreas Schiffler
02493c6188 Fix RWops test suite crash on Linux: remove unnecessary fclose 2013-01-14 07:20:55 -08:00
Andreas Schiffler
3bc9dbe16c Add input validation to SDL_GetKeyFromScancode; fix compiler warning in testautomation driver on Linux; update keyboard test suite 2013-01-13 22:55:26 -08:00
Sam Lantinga
175511b1a0 We don't have Visual CE support anymore 2013-01-13 14:31:53 -08:00
Andreas Schiffler
b4a190fb6f Update SDL_InvalidParamError to take param name; add additional fuzzer function; add new tests to keyboard test suite; improve surface test suite 2013-01-12 22:58:12 -08:00
Ryan C. Gordon
c1e8384624 Fixed logic bug. 2013-01-12 14:06:58 -05:00
Ryan C. Gordon
89124cba8b Fix a memory leak. We need to clean up our autorelease pool code at some point. 2013-01-12 14:04:51 -05:00
Andreas Schiffler
a20096403e Add new internal error message for invalid parameters; add validation of input rect in SDL_SetTextInputRect; add test cases for SDL_SetTextInputRect to keyboard suite 2013-01-11 20:36:39 -08:00
Andreas Schiffler
054a17097d Added 3 more test cases to keyboard suite 2013-01-10 23:26:49 -08:00
Gabriel Jacobo
678523ea7c Android: Access APK files using AssetFileDescriptor 2013-01-08 09:30:53 -03:00
Gabriel Jacobo
b2b90c9f49 Fixed SDLActivity::audioInit return type, thanks Andreas! 2013-01-08 08:28:39 -03:00
Andreas Schiffler
17b81066ba Merged with tip 2013-01-07 07:39:46 -08:00
Andreas Schiffler
71eabe59cb Add a few keyboard tests; fix missing input validation in SDL_GetKeyFromName 2013-01-07 07:39:15 -08:00
Gabriel Jacobo
070defcf11 Fix Audio Buffer allocation on Android >= 4.2 2013-01-07 12:22:26 -03:00
Andreas Schiffler
5220df817b Add new test suite (mouse) with a few new tests 2013-01-06 18:19:30 -08:00
Andreas Schiffler
687ba034f6 Add new test suites (events, keyboard, syswm, video) with a few new tests each 2013-01-06 15:17:59 -08:00
Andreas Schiffler
c412071894 Fix VS buildbot builds 2012-12-31 19:22:05 -08:00
Andreas Schiffler
e225eb7390 Fix VS2010 and VS2012 solutions. 2012-12-31 19:11:14 -08:00
Sam Lantinga
3067058b0d Fixed compiler warnings in edid-parse.c 2012-12-26 07:11:56 -08:00
Sam Lantinga
1610041e3c Implemented SDL_GetDisplayName() for X11, which requires the XRandR extension.
It turns out there's all kinds of good information in the EDID data for a monitor...
2012-12-31 18:32:30 -08:00
Sam Lantinga
290bbdda14 Fixed bug 1653 - comma at the end of enum
Martin Gerhardy 2012-11-30 03:07:14 PST

SDL_gamecontroller.h:61:29: warning: comma at end of enumerator list [-pedantic]
2012-12-31 16:29:01 -08:00
Edward Rudd
088842729f Corrected call to glXMakeCurrent() when setting a NULL context.
Fixes Bugzilla #1675.
2012-12-31 19:16:52 -05:00
Sam Lantinga
0c7ab10e80 Implemented getting the display name on Windows 2012-12-31 15:36:19 -08:00
Sam Lantinga
b1185a32e3 Fixed bug 1616 - SDL does not use values set with SDL_GL_SetAttribute on Android
Philipp Wiesemann 2012-10-06 07:19:57 PDT

SDL does not use values set with SDL_GL_SetAttribute on Android.

I attached a patch which adds this functionality and makes it possible to set
(for example) depth buffer size or anti-aliasing in the actual application
instead of modifying the Java source (which seems currently the only way).
2012-12-31 14:57:36 -08:00
Sam Lantinga
69c062e757 Fixed bug 1671 - add cast to fix build with strict GCC settings
Pavol Rusnak 2012-12-21 16:08:39 PST

I suggest the following patch to fix build with strict GCC settings
2012-12-31 14:14:01 -08:00
Sam Lantinga
441cba9b55 Fixed bug 1672 - Found: seg-fault with testgesture
automata 2012-12-23 22:05:21 PST

An incorrect guard resulted in segmentation faults with the
SDL/test/testgesture executable. The attached patch fixes this issue, and also
allows the program's window to properly handle resize events.

Apply the attached patch to .../SDL/test/testgesture.c
2012-12-31 14:08:43 -08:00
Sam Lantinga
49bf362b10 Fixed building tests with Visual Studio 2008 2012-12-31 13:49:06 -08:00
Sam Lantinga
1a92f18381 Added SDL_SetWindowMaximumSize() and SDL_GetWindowMaximumSize()
Also fixed Cocoa implementation so that it affects client area, not the whole window area.
2012-12-31 12:15:25 -08:00
Sam Lantinga
ce28a79602 Added SDL_GetDisplayName(), with implementation for Mac OS X 2012-12-31 11:07:46 -08:00
Sam Lantinga
5e519b21ed Renamed SDL_GetWindowDisplay() to SDL_GetWindowDisplayIndex() 2012-12-31 10:29:17 -08:00
Sam Lantinga
ac0f89315c Switched the test code over to use the common functions in the test library. 2012-12-31 10:26:38 -08:00
Sam Lantinga
f367ee7277 Implemented SDL_HINT_ALLOW_TOPMOST for the Cocoa video driver 2012-12-31 10:14:38 -08:00
Sam Lantinga
13fe19497e Added --fullscreen-desktop option to test the new SDL_WINDOW_FULLSCREEN_DESKTOP functionality 2012-12-31 10:13:25 -08:00
Sam Lantinga
f4294fd806 Improvements from Alfred:
- Added new SDL_HINT_ALLOW_TOPMOST hint, when set to "0" then never set the topmost bit on a window. Useful when debugging fullscreen issues.
- fixed crash in windows joystick scanning if we failed to load the xinput dll
- added support for SDL_WINDOW_FULLSCREEN_DESKTOP under windows
- synthesize relative mouse movements if directinput fails to send relative moves, happens under virtual box.
2012-12-31 09:30:15 -08:00
Andreas Schiffler
1b938d7de2 Fix incorrect use of SDL_FreeRW in rwops suite; add testcase for SDL_AllocRW/SDL_FreeRW to rwops test suite 2012-12-30 19:05:50 -08:00
Andreas Schiffler
485dd6420e Add define to surface suite to quiet VS compiler warnings 2012-12-30 11:12:31 -08:00
Andreas Schiffler
1ab1039416 Add missing VS project dependencies to fix buildbot build; fix surface suite; minor update to rwops suite 2012-12-30 10:58:18 -08:00
Andreas Schiffler
40c14b85a8 Add testautomation to VS project; remove automated from VS project; minor update to platform suite 2012-12-30 09:58:03 -08:00
Ryan C. Gordon
da7983235f Better compiler warning fix for gcc2. 2012-12-28 20:01:41 -05:00
Ryan C. Gordon
cfbe53d1df Fixing buildbot on Haiku.
Damn you, gcc2.
2012-12-28 18:15:02 -05:00
Sam Lantinga
db5b89f13f Don't crash if loading the OpenGL library fails 2012-12-28 14:46:03 -08:00
Ryan C. Gordon
fc98164d8d Replaced Gnome screensaver hack with D-Bus messages to org.gnome.ScreenSaver. 2012-12-28 03:46:55 -05:00
Andreas Schiffler
9ddb1f459d Add surface test suite; minor improvements to render suite; refactor image saving into test lib compare function; fix for Haiku build 2012-12-26 22:26:44 -08:00
Andreas Schiffler
d9a9083464 Added audio test suite; minor code cleanups in test lib 2012-12-24 14:43:57 -08:00
Andreas Schiffler
2e4dc511a0 Fix compiler warning; minor harness driver cleanup; fix test build for SDL versions compiled with --disable-joystick or --disable-haptic 2012-12-22 20:43:51 -08:00
Andreas Schiffler
1b63b3fd52 Reorder test lib use to fix build for some compilers 2012-12-22 20:13:25 -08:00
Sam Lantinga
fff2381298 Added the automation test to the autoconf build system
--HG--
rename : test/tests/testclipboard.c => test/testautomation_clipboard.c
rename : test/tests/testplatform.c => test/testautomation_platform.c
rename : test/tests/testrect.c => test/testautomation_rect.c
rename : test/tests/testrender.c => test/testautomation_render.c
rename : test/tests/testrwops.c => test/testautomation_rwops.c
rename : test/tests/testsuites.h => test/testautomation_suites.h
2012-12-22 17:24:42 -08:00
Sam Lantinga
b11f967898 Fixed const correctness in the test harness 2012-12-22 17:24:14 -08:00
Sam Lantinga
a7b1d9f530 Added the test library to fatbuild 2012-12-22 17:24:02 -08:00