Andreas Schiffler
4ec8d70ca1
Add input validation to SDL_CalculateGammaRamp; add test coverage to Pixels suite; update test cases in Pixels suite
2013-05-05 11:17:40 -07:00
Philipp Wiesemann
4f70701db1
Removed not needed block from Java file.
2013-05-05 16:01:19 +02:00
Philipp Wiesemann
4266102f1d
Changed signatures of methods in Java file to return boolean, adapted C++ file.
...
This way more checking for errors is possible which is currently not done here.
2013-05-05 15:54:56 +02:00
Philipp Wiesemann
89805a7cae
Changed signature of method recently added in Java file.
2013-05-05 15:50:21 +02:00
Philipp Wiesemann
023c495919
Fixed SDL_HasScreenKeyboardSupport() returning SDL_TRUE for PSP.
...
There is currently no implementation and therefore no support.
2013-05-05 15:39:37 +02:00
Philipp Wiesemann
ffd1362c16
Added a method in Java file which may be overridden for custom messages.
2013-05-05 12:53:57 +02:00
Philipp Wiesemann
3fd91d1319
Fixed possible leak and its Android Lint warning in Java file.
2013-05-05 12:50:34 +02:00
Philipp Wiesemann
b5c9f3354d
Corrected spelling in C source files of test suites.
2013-05-05 12:47:44 +02:00
Philipp Wiesemann
e2fe26af28
Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
2013-05-04 22:44:03 +02:00
Andreas Schiffler
28d45cd955
Added additional input validation to SDL_AllocPalette; added error codes; added test case to Pixels suite for coverage
2013-05-04 09:11:18 -07:00
Sam Lantinga
866f2e5f9e
First pass on SDL render clip rect functionality
2013-05-04 04:46:00 -07:00
Kevin Shanahan
0a3ab9190b
Fix compile on Xcode 3.1 PPC + Altivec
...
-faltivec is given on the command line, so #include <altivec.h> is ignored in
this case and #undef'ing vector causes compile to fail.
2013-05-03 14:11:41 +09:30
Edward Rudd
33660e58c1
move Ticks initialization tracking to separate function and ensure it's called with SDL_VideoInit is called to init SDL instead of SDL_Init
...
-- why do we even allow initialization w/o calling at least SDL_Init(0) ?
2013-05-02 21:40:59 -04:00
Edward Rudd
907ac2687c
default clock_gettime use to enabled as there is now proper fallback code for systems that don't have it.
2013-05-02 21:23:38 -04:00
Edward Rudd
2c6d6e45d9
add in OS X Monotonic clock as well as handling fall-back incase the OSX/Linux system doesn't have a monotonic clock.
...
Code curtesy of Thomas Habets ( https://github.com/ThomasHabets/monotonic_clock )
--HG--
extra : rebase_source : 767f4fbc2b7bda8d59c7b10a24467043770e94f1
2013-05-02 21:17:59 -04:00
Sam Lantinga
98819d0d8d
QueryPerformanceCounter() is reliable these days, and setting the timer frequency higher can have adverse power consequences.
...
dd757624
%28v=vs.85%29.aspx
2013-05-02 16:54:03 -07:00
Philipp Wiesemann
0e9ba88315
Removed SDL prefix from internal function pointers for screen keyboard access.
2013-05-02 23:12:03 +02:00
Andreas Schiffler
985951f70e
Add pixels test suite; add a test to pixel suite; minor updates to test code to make VisualStudio happy
2013-05-01 22:14:29 -07:00
Philipp Wiesemann
e83262a725
Corrected spelling in C source files.
2013-05-01 11:59:54 +02:00
Philipp Wiesemann
5b428b875f
Corrected spelling in C source files.
2013-05-01 11:42:29 +02:00
Philipp Wiesemann
2b271666be
Fixed SDL_HapticQuery() returning -1 as unsigned int if device is not valid.
...
The function now returns 0 which is the same as if no effects were supported.
This may be confusing in rare situations but will not matter most of the time.
2013-05-01 11:32:05 +02:00
Philipp Wiesemann
f19e013294
Removed unused variables from C source files.
2013-04-29 23:54:22 +02:00
Philipp Wiesemann
a4432d3cdf
Corrected confusing indentation in C source file.
2013-04-29 23:50:27 +02:00
Philipp Wiesemann
b23a53205a
Corrected spelling in C source file.
2013-04-29 23:45:40 +02:00
Philipp Wiesemann
8b5e69d9c5
Corrected names in README file.
2013-04-29 23:41:49 +02:00
Philipp Wiesemann
7ba6d24ed9
Added missing return statements in test suite for audio.
2013-04-28 09:54:56 +02:00
Philipp Wiesemann
c0f29fb59a
Corrected spelling in header files.
2013-04-27 17:52:58 +02:00
Philipp Wiesemann
103fc07702
Removed not needed casts from Java file.
2013-04-27 17:23:20 +02:00
Philipp Wiesemann
9e39871ec5
Removed not needed import statements from Java file.
2013-04-27 17:17:37 +02:00
Philipp Wiesemann
628e39e91c
Removed dead store from Java file because value never used.
2013-04-27 17:15:40 +02:00
Philipp Wiesemann
65291c1e99
Renamed inner class in Java file to avoid confusion with an unrelated class.
2013-04-27 17:10:14 +02:00
Philipp Wiesemann
67eb721095
Corrected spelling header file comments.
2013-04-27 14:33:27 +02:00
Philipp Wiesemann
423489e19d
Changed Java source file to use constant from API instead of just a String.
2013-04-27 14:26:15 +02:00
Philipp Wiesemann
bdd9df5fd9
Added missing @Override annotations in Java source file to reduce warnings.
2013-04-27 14:13:30 +02:00
Philipp Wiesemann
dc6e420626
Replaces tabs with four spaces in C source file.
2013-04-27 13:55:47 +02:00
Philipp Wiesemann
f06595200f
Corrected comment in header file.
2013-04-27 13:42:56 +02:00
Philipp Wiesemann
1e5aaadf49
Corrected a comment in Java source file.
2013-04-27 13:33:05 +02:00
Jørgen P. Tjernø
9e4a519493
Mac: Fix relative mode message after gaining focus.
...
This fixes a bug where relative mode would give a large jump if the
cursor was moved when the app doesn't have focus.
--HG--
extra : histedit_source : ff1b20a9e7f6e079c073c4ef761566b6c80b0f22%2C9879c6c838c69afea4aa2be80cbe137054600d12
2013-04-25 18:40:29 -07:00
Jørgen P. Tjernø
22358fddd1
Mac: Don't supress mousemoves after warp.
...
By default, synthesizing events supresses real events for a quarter
second. This makes for some wonky behavior.
--HG--
extra : histedit_source : 769156e3eba77c601de006c5aad1cdc1febe1d6c
2013-04-25 18:40:22 -07:00
Jørgen P. Tjernø
51619c5485
Don't warp mouse on focus lost.
...
This isn't working great, so undo it until we can fix it properly to save /
restore mouse positions.
--HG--
extra : histedit_source : d8fe81a1690bd9406df132c325c8dd7c61baec29%2C2243b548ccaec444b2e4bdab04ba67cdf236c4fb
2013-04-25 18:40:31 -07:00
Edward Rudd
42b825029c
Allow disabling SDL_IPHONE_KEYBOARD in iOS builds
2013-04-25 18:05:08 -04:00
Sam Lantinga
8a91a76148
Fixed bug 1582 - Allow disabling SDL_VIDEO_DRIVER_WINDOWS
...
Marcus von Appen
Trying to build SDL 2.x (HG) on Win32 platforms with either VS.NET or MinGW requires one to have the video subsystem and SDL_VIDEO_DRIVER_WINDOWS flag enabled due to the helper window creation routines.
The attached patch changes the helper window creation behaviour, so that one can build SDL2 without the video subsystem or Windows video drivers on Win32 platforms.
2013-04-25 00:26:17 -07:00
Sam Lantinga
b72f0b741e
Fixed bug 1583 - Fix build for disabled SDL render subsystem
...
Marcus von Appen
If one wants to disable the SDL render subsystem, the build breaks on several platforms due to an empty render_drivers array in SDL_render.c.
2013-04-25 00:15:09 -07:00
Ryan C. Gordon
83e561b48c
Removed Cocoa OpenGL optimization that was probably good advice 10 years ago.
2013-04-24 23:11:48 -04:00
Jørgen P. Tjernø
d8ef30ac34
Move cursor into window when enabling relative mode or gaining focus in relative mode.
...
This prevents wonky behavior where the clicks won't go to the window
because the cursor was outside it when we enabled relative mode.
2013-04-24 12:20:51 -07:00
Jørgen P. Tjernø
238eacc409
Mac: Update mouse position on warp.
2013-04-24 12:20:48 -07:00
Jørgen P. Tjernø
192af6485f
Test plan for relative mode.
2013-04-24 12:20:44 -07:00
Jørgen P. Tjernø
69bc11e564
Add SDL_GetDefaultCursor.
...
This fixes http://bugzilla.libsdl.org/show_bug.cgi?id=1798
Thanks to Alex Szpakowski for suggestion & patch.
2013-04-24 10:42:44 -07:00
Gabriel Jacobo
8836a99081
Bug 1787 - memory leak in WIN_InitMouse() by Marcel Bakker
2013-04-24 12:22:08 -03:00
Gabriel Jacobo
742233249a
Bug 1786 - memory leak in WIN_GetDisplayModes by Marcel Bakker
2013-04-24 11:49:52 -03:00