SDL: new API SDL_ANDROID_SetConfigOption() to configure SDL Android-specific options, such as video depth (which requires app restart)

This commit is contained in:
pelya
2016-04-17 01:06:27 +03:00
parent 4374b45ed0
commit 493530112e
8 changed files with 47 additions and 11 deletions

View File

@@ -942,6 +942,11 @@ class DemoRenderer extends GLSurfaceView_SDL.Renderer
System.exit(0);
}
public void setConfigOptionFromSDL(int option, int value)
{
Settings.setConfigOptionFromSDL(option, value);
}
private int PowerOf2(int i)
{
int value = 1;