Commit graph

3796 commits

Author SHA1 Message Date
Michael Sartain
f398faa548 Use left facing arrow instead of right facing arrow for system cursor. 2013-02-05 12:09:59 -08:00
stopiccot
929560081c Replaced manual NSAutoreleasePool handing with @autorelease 2013-01-06 19:04:53 +03:00
Sam Lantinga
e1f76ef0ea Fixed setting the GUID for Bluetooth joysticks 2013-02-01 17:09:01 -08:00
Andreas Schiffler
ade15e571f Add tests to audio suite; update harness filter logic 2013-01-31 08:45:30 -08:00
Sam Lantinga
0c9fca187f Don't reset the mouse, that's actually bad behavior most of the time for windowed applications. 2013-01-27 20:37:14 -08:00
Gabriel Jacobo
9e1dc0a80d Fixes potential global reference leak on Android, by Philipp Wiesemann 2013-01-27 21:43:20 -03:00
Sam Lantinga
22321b18ef Fixed direction of rotation with OpenGL ES 2 2013-01-27 15:52:56 -08:00
Sam Lantinga
4cec546dca Fixed crash when the game controller mapping hint is set - the hint was duplicated and not null terminated. 2013-01-25 14:25:19 -08:00
Andreas Schiffler
b507ef3afa Add additional input validation to SDL_BuildAudioCVT; add additional tests to automation (audio, rwops) 2013-01-21 09:16:27 -08:00
Ryan C. Gordon
d41de59fc9 Cleaned out a few C++ single-line comments.
Should we bother doing this anymore? Is there really a C compiler we care
 about that doesn't support this?
2013-01-21 02:50:11 -05:00
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
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
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
Gabriel Jacobo
678523ea7c Android: Access APK files using AssetFileDescriptor 2013-01-08 09:30:53 -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
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
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
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
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
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
Sam Lantinga
b11f967898 Fixed const correctness in the test harness 2012-12-22 17:24:14 -08:00
Sam Lantinga
acdd875c64 Fixed bug in SDL_strcasecmp() with strings of different sizes 2012-12-22 16:52:33 -08:00
Andreas Schiffler
81eb615d45 Test lib updates: updated harness to support filtering, added surface comparer, updated interface to test images; added Render test suite from GSOC project 2012-12-22 16:06:55 -08:00
Andreas Schiffler
f5af517cd2 Add image data definitions (for render tests) to test lib 2012-12-20 08:50:36 -08:00
Andreas Schiffler
fa5fe44bc0 Port clipboard and rwops test suites from GSOC code; minor updates to harness and fuzzer in test lib 2012-12-16 21:59:29 -08:00
Ryan C. Gordon
ec4cfa8c73 SDL_assertion messages use "\n" instead of "\r\n" on non-Windows platforms. 2012-12-16 14:46:16 -05:00
Ryan C. Gordon
c2ec53f4fa X11 messageboxes should treat "\r\n" as "\n" by ignoring the '\r' char.
--HG--
extra : rebase_source : 0054e96755f753555237f3d7dd64f1dfa1a1e56c
2012-12-16 14:39:49 -05:00
Andreas Schiffler
adefd543ce Fixes in harness and fuzzer test lib components; improve harness driver; add rect test suite 2012-12-15 21:50:17 -08:00
Andreas Schiffler
a6185d6ad9 Refactor/fix test lib harness, assert and log component; add harness driver; port platform suite from GSOC code 2012-12-14 23:05:34 -08:00
Sam Lantinga
dfe7f2bc59 Improvements from Alfred:
- Add new SDL_WINDOW_FULLSCREEN_DESKTOP video mode, makes a fullscreen window the size of the desktop (i.e no window manager mode change)
- Fix crash in warp mouse if you specified null as the window
- Added new SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS Hint, if set to 0 then don't minimize a fullscreen window on focus lost (if not set or set to non-zero then minimize on focus loss)
2012-12-15 00:30:17 +00:00
Sam Lantinga
29bfd0ab48 Load the runtime udev library, not the development one. 2012-12-14 18:50:07 +00:00
Sam Lantinga
80493dfae0 Only check SDL_SYS_JoystickNeedsPolling() if we know we don't need to poll for other reasons. This avoids a select() syscall on Linux if it isn't necessary. 2012-12-14 09:22:13 -08:00