projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20140106-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 39c78b3fef57230c58ae320f6632572ff1f1d64c..59e5fd61c27c711c46e7a6cd07603505e8c26bc4 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-438,6
+438,10
@@
void CloseVideoDisplay(void)
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
{
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
{
+#if 0
+ static boolean initialized = FALSE;
+#endif
+
video.width = width;
video.height = height;
video.depth = GetRealDepth(depth);
video.width = width;
video.height = height;
video.depth = GetRealDepth(depth);
@@
-451,6
+455,13
@@
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
video.window_scaling_available = WINDOW_SCALING_STATUS;
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
#if defined(TARGET_SDL)
SDLInitVideoBuffer(&backbuffer, &window, fullscreen);
#else
@@
-458,6
+469,10
@@
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
#endif
drawto = backbuffer;
#endif
drawto = backbuffer;
+
+#if 0
+ initialized = TRUE;
+#endif
}
inline static void FreeBitmapPointers(Bitmap *bitmap)
}
inline static void FreeBitmapPointers(Bitmap *bitmap)