Commit graph

5746 commits

Author SHA1 Message Date
Philipp Wiesemann
d3b85c8965 Changed spelling for consistency. 2013-05-15 22:10:06 +02:00
Philipp Wiesemann
74047a3267 Fixed Doxygen warnings. 2013-05-15 22:00:28 +02:00
Philipp Wiesemann
699341597a Corrected spelling in header file. 2013-05-13 23:00:50 +02:00
Philipp Wiesemann
337c6acc60 Inlined expression for consistency in render source. 2013-05-13 22:45:06 +02:00
Andreas Schiffler
db04389abc Fix fuzzer/fuzzer tests on 64bit Linux; remove invalid negative SDL_Scancode test; disable failing surface/render test cases 2013-05-12 15:00:00 -07:00
Philipp Wiesemann
6814d3a09c Fixed building on Visual Studio.
Buildbot
2013-05-12 14:25:38 +02:00
Philipp Wiesemann
aa0aeac03c Fixed bug 1845 - SDL_GetNumTouchDevices() has incorrect prototype
nfxjfg

SDL_touch.h:63:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]

Is:

extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices();

Should be:

extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void);
2013-05-12 13:42:20 +02:00
Philipp Wiesemann
df60747e3b Fixed bug 1844 - glScissor calls are wrong - Patch attached
Martin Gerhardy

the coordinate system from sdl is not correctly transformed to the coordinate system of opengl. glScissor expects them to be a little bit different. Attached is a patch that fixes this
2013-05-12 13:40:02 +02:00
Philipp Wiesemann
98b4492c37 Fixed bug 1843 - SDL_RenderClear prototype doxygen missing
Martin Gerhardy

SDL_RenderClear prototype misses documentation for the return value
2013-05-12 13:25:34 +02:00
Philipp Wiesemann
d7cb8fc61f Corrected spelling in internal include file. 2013-05-12 13:02:07 +02:00
Philipp Wiesemann
0c5e871267 Updated README.android. 2013-05-12 12:59:17 +02:00
Philipp Wiesemann
8d53137515 Fixed Android Lint warning in AndroidManifest.xml. 2013-05-10 21:19:40 +02:00
Philipp Wiesemann
20a48b079c Added missing vi lines. 2013-05-10 21:14:13 +02:00
Philipp Wiesemann
cafc8e6dc1 Fixed implicit function declaration warnings. 2013-05-10 21:08:37 +02:00
Philipp Wiesemann
bb1f191c0d Fixed precedence warning in test suite for pixels. 2013-05-10 21:04:51 +02:00
Gabriel Jacobo
293da630b8 Fixed typo in GL_UpdateClipRect 2013-05-10 10:33:15 -03:00
Gabriel Jacobo
7065c6467d Fixes OpenGL* Clip Rect functions (by Emmanuel Gil Peyrot) 2013-05-10 10:31:01 -03:00
Sam Lantinga
5d9de376d2 Updated version to 2.0.0 2013-05-09 16:30:44 -07:00
Jørgen P. Tjernø
7b5cb0dcbd Mac: Use cursor rects instead of NSCursor hide/unhide.
This should hopefully fix a class of problems around cursor hiding not behaving correctly on Mac.

http://bugzilla.libsdl.org/show_bug.cgi?id=1824
2013-05-07 16:52:39 -07:00
Philipp Wiesemann
a5a75e0bde Fixed test suite for mouse using Uint8 instead of Uint32 for buttons.
SDL_GetMouseState() returned Uint8 in SDL 1.2 but was changed recently.
2013-05-06 23:02:37 +02:00
Philipp Wiesemann
1139caac7f Removed unreachable return statement from test suite for timer. 2013-05-06 23:01:14 +02:00
Philipp Wiesemann
be8e310e8d Removed wrong documentation from test suite for render. 2013-05-06 23:00:30 +02:00
Sam Lantinga
914c1c4469 Disable C++ exceptions, use debug format that includes debug information in the static libraries, and standardize on Program Database / Program Database with edit and continue for the DLL debug format. 2013-05-06 13:39:17 -07:00
Andreas Schiffler
8ac64239e5 Add test for SDL_GetPixelFormatName to Pixels suite; minor improvements to Pixels suite 2013-05-06 08:13:44 -07:00
Ethan Lee
1a2ba7422c Implemented SDL_GL_SHARE_WITH_CURRENT_CONTEXT for Mac OS X. 2013-05-05 21:01:20 -04:00
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