rnd-20140117-1-src
[rocksndiamonds.git] / src / libgame / system.c
index 59e5fd61c27c711c46e7a6cd07603505e8c26bc4..94fe631b87a12e3f421dbf0b6148fc55443ce23d 100644 (file)
@@ -415,6 +415,13 @@ inline static void sysCopyArea(Bitmap *src_bitmap, Bitmap *dst_bitmap,
 #endif
 }
 
+void LimitScreenUpdates(boolean enable)
+{
+#if defined(TARGET_SDL)
+  SDLLimitScreenUpdates(enable);
+#endif
+}
+
 void InitVideoDisplay(void)
 {
 #if defined(TARGET_SDL)
@@ -439,7 +446,7 @@ void CloseVideoDisplay(void)
 void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
 {
 #if 0
-  static boolean initialized = FALSE;
+  printf("::: InitVideoBuffer\n");
 #endif
 
   video.width = width;
@@ -448,6 +455,7 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
 
   video.fullscreen_available = FULLSCREEN_STATUS;
   video.fullscreen_enabled = FALSE;
+  // video.fullscreen_initial = FALSE;
 #if 0
   video.fullscreen_mode_current = NULL;
   video.fullscreen_modes = NULL;
@@ -455,13 +463,6 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
 
   video.window_scaling_available = WINDOW_SCALING_STATUS;
 
-#if 0
-#if defined(PLATFORM_ANDROID)
-  if (!initialized)
-    video.fullscreen_enabled = TRUE;
-#endif
-#endif
-
 #if defined(TARGET_SDL)
   SDLInitVideoBuffer(&backbuffer, &window, fullscreen);
 #else
@@ -469,10 +470,6 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
 #endif
 
   drawto = backbuffer;
-
-#if 0
-  initialized = TRUE;
-#endif
 }
 
 inline static void FreeBitmapPointers(Bitmap *bitmap)