Special hack for TeeWorlds

This commit is contained in:
pelya
2012-10-18 21:00:18 +03:00
parent 79bd16bce7
commit 1c7fee620d
2 changed files with 10 additions and 7 deletions

View File

@@ -21,13 +21,13 @@ AppNeedsTwoButtonMouse=n
ShowMouseCursor=n
ForceRelativeMouseMode=n
AppNeedsArrowKeys=y
AppNeedsTextInput=y
AppUsesJoystick=y
AppNeedsTextInput=n
AppUsesJoystick=n
AppUsesAccelerometer=y
AppUsesMultitouch=y
NonBlockingSwapBuffers=n
RedefinedKeys="SPACE RETURN LEFT RIGHT LSHIFT ESCAPE RSHIFT LSHIFT"
AppTouchscreenKeyboardKeysAmount=6
AppUsesMultitouch=n
NonBlockingSwapBuffers=y
RedefinedKeys="SPACE RETURN NO_REMAP NO_REMAP"
AppTouchscreenKeyboardKeysAmount=4
AppTouchscreenKeyboardKeysAmountAutoFire=0
RedefinedKeysScreenKb="SPACE RETURN LEFT RIGHT RSHIFT LSHIFT"
StartupMenuButtonTimeout=3000
@@ -37,7 +37,7 @@ MultiABI=n
AppVersionCode=06108
AppVersionName="0.6.1.08"
ResetSdlConfigForThisVersion=y
DeleteFilesOnUpgrade="data"
DeleteFilesOnUpgrade="data .teeworlds"
CompiledLibraries="sdl_image freetype glu"
CustomBuildScript=n
AppCflags='-O3'

View File

@@ -1040,11 +1040,14 @@ static void ANDROID_UpdateRects(_THIS, int numrects, SDL_Rect *rects)
void ANDROID_GL_SwapBuffers(_THIS)
{
//__android_log_print(ANDROID_LOG_INFO, "libSDL", "ANDROID_GL_SwapBuffers");
// TeeWorlds use hacky hack to draw from separate thread, however it works surprisingly well
/*
if( !SDL_ANDROID_InsideVideoThread() )
{
__android_log_print(ANDROID_LOG_INFO, "libSDL", "Error: calling %s not from the main thread!", __PRETTY_FUNCTION__);
return;
}
*/
SDL_ANDROID_CallJavaSwapBuffers();
};