Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Turn off option for hardware mode

We turn the option for hardware mode off, and force software mode.

We can try to turn hardware mode on again in the future, but for now
we are starting with software mode.
  • Loading branch information...
commit 8da61d0b958c92af5cd5ad7705aee2c795110d02 1 parent f4ee995
@dennis-sheil authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 project/jni/application/mathgame/mathgame/src/setup.c
8 project/jni/application/mathgame/mathgame/src/setup.c
@@ -557,6 +557,13 @@ void initialize_SDL(void)
const SDL_VideoInfo *videoInfo;
Uint32 surfaceMode;
videoInfo = SDL_GetVideoInfo();
+ // For Android, we are only doing software mode for now. In the future
+ // we may do hardware mode, but for now we are forcing software mode.
+ //
+ surfaceMode = SDL_SWSURFACE;
if (videoInfo->hw_available)
surfaceMode = SDL_HWSURFACE;
@@ -567,6 +574,7 @@ void initialize_SDL(void)
surfaceMode = SDL_SWSURFACE;
DEBUGMSG(debug_setup, "SW mode\n");
// Determine the current resolution: this will be used as the
// fullscreen resolution, if the user wants fullscreen.
Please sign in to comment.
Something went wrong with that request. Please try again.