Sam Lantinga
3beb70c4bc
Added mobile application events, with implementations for iOS and Android
2013-05-18 12:48:50 -07:00
Andreas Schiffler
d99b036e08
Update test harness to handle test return codes; fix comment format in harness; update Main test suite to handle globally disabled features
2013-05-18 09:35:09 -07:00
Philipp Wiesemann
27e1a7ca41
Fixed Doxygen warnings.
2013-05-18 14:48:19 +02:00
Philipp Wiesemann
23dad5b9c7
Corrected comment in Java file.
2013-05-18 14:04:37 +02:00
Philipp Wiesemann
1cdf7f6988
Changed import statements in Java file.
2013-05-18 14:03:45 +02:00
Ryan C. Gordon
3928468bfa
Made SDL_RectEmpty and SDL_RectEquals macros into SDL_FORCE_INLINE functions.
...
Fixes compiler warnings for things like this...
if (SDL_RectEmpty(&rect)) {}
...where the macro turned into "if ( (!(&rect)) && etc )" which some compilers
thought might be a programmer mistake, as "&rect" is always "true".
2013-05-16 12:16:12 -04:00
Sam Lantinga
8bd4a42a14
Fixed bug 1829 - sdl2-config is not executable
...
leighmanthegreat@hotmail.com
I downloaded SDL2 from hg source.
I built to a ./build directory.
I downloaded SDL_image 2 hg and attempted to build.
When it cannot find a sdl2-config the SDL_image configure correctly suggests setting SDL_CONFIG variable.
Setting this the configure still fails with 'Permission denied' on the call to sdl2-config.
Setting execute permission solves the problem.
If possible, sdl2-config should have executable bit set when it is created.
2013-05-16 01:03:28 -07:00
Sam Lantinga
d6adde2adb
Fixed bug 1838 - [Patch] Direct3D resource leak on SDL_DestroyRenderer()
2013-05-16 00:56:19 -07:00
Sam Lantinga
9cf606c47c
Fixed bug 1839 - SDL2 Cmake: VIDEO_COCOA check fails on OS X; VIDEO_COCOA sources aren't compiled.
2013-05-16 00:52:33 -07:00
Sam Lantinga
f5b0547030
Martin Gerhardy added support for the Jess Technology USB Game Controller
2013-05-16 00:48:20 -07:00
Sam Lantinga
57fad12ba2
Fixed bug 1846 - _allmul implementation in SDL_stdlib.c doesn't clean up the stack
...
Colin Barrett
I see this manifest itself (VS2012 x86) as:
"Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention."
in the first call to SDL_GetTicks in my application. The disassembly at the problem line is:
hires_now.QuadPart *= 1000;
00AD0792 push 0
00AD0794 push 3E8h
00AD0799 mov eax,dword ptr [ebp-10h]
00AD079C push eax
00AD079D mov ecx,dword ptr [hires_now]
00AD07A0 push ecx
00AD07A1 call _allmul (0AE7D40h)
00AD07A6 mov dword ptr [hires_now],eax
00AD07A9 mov dword ptr [ebp-10h],edx
Apparently _allmul should be popping the stack but isn't (other similar functions in SDL_stdlib.c - _alldiv and whatnot - DO pop the stack).
A 'ret 10h' at the end of _allmul appears to do the trick
2013-05-16 00:43:22 -07:00
Sam Lantinga
f14452ed24
There's no need to keep these private. If you extend SDLActivity, you should know what you're doing.
2013-05-15 23:18:29 -07:00
Philipp Wiesemann
5703aaa041
Corrected internal function prototype.
2013-05-15 22:25:00 +02:00
Philipp Wiesemann
fa124e58f7
Corrected internal function prototype.
2013-05-15 22:24:23 +02:00
Philipp Wiesemann
0fb156d243
Changed spelling for consistency.
2013-05-15 22:10:06 +02:00
Philipp Wiesemann
f9a69af2f0
Fixed Doxygen warnings.
2013-05-15 22:00:28 +02:00
Philipp Wiesemann
8da0b7d301
Corrected spelling in header file.
2013-05-13 23:00:50 +02:00
Philipp Wiesemann
a19135fd1a
Inlined expression for consistency in render source.
2013-05-13 22:45:06 +02:00
Andreas Schiffler
82d01cd77a
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
08e8e38c86
Fixed building on Visual Studio.
...
Buildbot
2013-05-12 14:25:38 +02:00
Philipp Wiesemann
d1cc72dd52
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
de43af1b54
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
f38eef4c83
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
539f60a57d
Corrected spelling in internal include file.
2013-05-12 13:02:07 +02:00
Philipp Wiesemann
4395f05a93
Updated README.android.
2013-05-12 12:59:17 +02:00
Philipp Wiesemann
f67a75ebbb
Fixed Android Lint warning in AndroidManifest.xml.
2013-05-10 21:19:40 +02:00
Philipp Wiesemann
06f4beb78f
Added missing vi lines.
2013-05-10 21:14:13 +02:00
Philipp Wiesemann
b6cc5b3088
Fixed implicit function declaration warnings.
2013-05-10 21:08:37 +02:00
Philipp Wiesemann
d07e1075c7
Fixed precedence warning in test suite for pixels.
2013-05-10 21:04:51 +02:00
Gabriel Jacobo
d36f97eb89
Fixed typo in GL_UpdateClipRect
2013-05-10 10:33:15 -03:00
Gabriel Jacobo
d4c2a87a5b
Fixes OpenGL* Clip Rect functions (by Emmanuel Gil Peyrot)
2013-05-10 10:31:01 -03:00
Sam Lantinga
ae4a085fc1
Updated version to 2.0.0
2013-05-09 16:30:44 -07:00
Jørgen P. Tjernø
124ec4459a
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
b1ee2a3954
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
a2c97de609
Removed unreachable return statement from test suite for timer.
2013-05-06 23:01:14 +02:00
Philipp Wiesemann
faf4030526
Removed wrong documentation from test suite for render.
2013-05-06 23:00:30 +02:00
Sam Lantinga
5b2f60eaf9
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
04190b3e12
Add test for SDL_GetPixelFormatName to Pixels suite; minor improvements to Pixels suite
2013-05-06 08:13:44 -07:00
Ethan Lee
128baa8bd0
Implemented SDL_GL_SHARE_WITH_CURRENT_CONTEXT for Mac OS X.
2013-05-05 21:01:20 -04:00
Andreas Schiffler
c9f348d9ba
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
2cba589334
Removed not needed block from Java file.
2013-05-05 16:01:19 +02:00
Philipp Wiesemann
b6c14af95e
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
1773e82524
Changed signature of method recently added in Java file.
2013-05-05 15:50:21 +02:00
Philipp Wiesemann
bf4b77bbce
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
6bf81bca0b
Added a method in Java file which may be overridden for custom messages.
2013-05-05 12:53:57 +02:00
Philipp Wiesemann
daf329ee15
Fixed possible leak and its Android Lint warning in Java file.
2013-05-05 12:50:34 +02:00
Philipp Wiesemann
88d34bf7b1
Corrected spelling in C source files of test suites.
2013-05-05 12:47:44 +02:00
Philipp Wiesemann
49b3851430
Fixed SDL_RenderSetClipRect() returning undefined instead of -1 on error.
2013-05-04 22:44:03 +02:00
Andreas Schiffler
511dc6b8f0
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
7253832be1
First pass on SDL render clip rect functionality
2013-05-04 04:46:00 -07:00