Sam Lantinga [Fri, 13 Jan 2012 20:57:35 -0500] rev 6212
Fixed bug 1368 - Enabling joystick subsystem cause an infinite loop
morgan.devel@gmail.com 2012-01-13 00:32:23 PST
The android version of SDL_SYS_JoystickUpdate doesn't check if there is
actually new data and always generate the SDL_JOYAXISMOTION event.
Consequently, doing a while(SDL_PollEvent()) will result in an endless loop.
The attached patch fix this issue.
It also scale the incoming values properly in the Sint16 range. The scale from
[-gravity;+gravity] is done directly in the java part because one may want to
map the sensor values with a non-linear method for example.
Sam Lantinga [Thu, 12 Jan 2012 22:54:09 -0500] rev 6211
Better interpolation for the x4 upsampling case
Sam Lantinga [Thu, 12 Jan 2012 21:42:35 -0500] rev 6210
Fixed issue where there was a garbage sample at the end of the buffer.
Sam Lantinga [Tue, 10 Jan 2012 22:52:17 -0500] rev 6209
Fixed typo in mask comparison
Bl0ckeduser
I downloaded the SDL 1.2.15 prerelease and compiled it (under Mac OS
Classic). All the tests worked without issues, but the compiler gave
this warning [formatting edited for email format]:
} else if ( vf->Rmask == 0xFF00 && (vf->Bmask = 0xFF000000) ) {
":src:video:SDL_video.c"; line 990 #Warning 2: possible unintended assignment
I discussed this with another programmer and we came to the conclusion
that this is probably a typo.
I have checked the latest mercurial sources, and the possible typo is
still there.
Bl0ckeduser
Sam Lantinga [Tue, 10 Jan 2012 21:07:09 -0500] rev 6208
David Carre cpasjuste@gmail.com
I'm playing with SDL on android, and did notice a problem in latest sources ( branch "default" ) :
SDL/src/render/opengles/SDL_glesfuncs.h:10: error: 'glDrawTexiOES' undeclared (first use in this function)
SDL/src/render/opengles/SDL_glesfuncs.h:10: error: (Each undeclared identifier is reported only once
If it can help you win some time here is the fix, applied to the "Android.mk" file :
LOCAL_CFLAGS += -D GL_GLEXT_PROTOTYPES
Sam Lantinga [Tue, 10 Jan 2012 21:00:47 -0500] rev 6207
Fixed bug 1331 - SDL_CreateTextureFromSurface fails for OpenGL + Win XP 64 NVidia 285.58 with GL_INVALID_ENUM
I think this fixes the bug. I'm not sure why it would fail, and it may have something to do with the version of OpenGL that we initialize and use by default. Regardless, this should take care of the problem.
Patrice Mandin [Tue, 10 Jan 2012 21:12:45 +0100] rev 6206
Add and use SuperToUser macro to handle super->user mode switch
Sam Lantinga [Mon, 09 Jan 2012 21:11:11 -0500] rev 6205
Fixed bug 1366 - SDL_opengles2.h is not installed in "include/SDL" under Linux
Sam Lantinga [Mon, 09 Jan 2012 07:07:43 -0500] rev 6204
Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures.
Sam Lantinga [Mon, 09 Jan 2012 07:06:36 -0500] rev 6203
Fixed structure alignment mismatch between Visual Studio and gcc on 64-bit architectures.