src/video/android/SDL_androidvideo.c
changeset 9173 c677ab1148c5
parent 8799 e2fd743d84ea
child 9314 8d826bc39a45
--- a/src/video/android/SDL_androidvideo.c	Fri Oct 17 23:36:45 2014 +0200
+++ b/src/video/android/SDL_androidvideo.c	Mon Oct 20 10:10:39 2014 -0300
@@ -76,6 +76,12 @@
 }
 
 static void
+Android_SuspendScreenSaver(_THIS)
+{
+    Android_JNI_SuspendScreenSaver(_this->suspend_screensaver);
+}
+
+static void
 Android_DeleteDevice(SDL_VideoDevice * device)
 {
     SDL_free(device);
@@ -126,6 +132,9 @@
     device->GL_SwapWindow = Android_GLES_SwapWindow;
     device->GL_DeleteContext = Android_GLES_DeleteContext;
 
+    /* Screensaver */
+    device->SuspendScreenSaver = Android_SuspendScreenSaver;
+
     /* Text input */
     device->StartTextInput = Android_StartTextInput;
     device->StopTextInput = Android_StopTextInput;