X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=59e5fd61c27c711c46e7a6cd07603505e8c26bc4;hb=b06464b4dc26c0e31ef0bca48b31a4dfbdd549e6;hp=4c43f02d29751da31bb018f64127d22b320e55e4;hpb=297ee9b33dab3bca9433befc81d7c7ce91450dd0;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 4c43f02d..59e5fd61 100644 --- 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) { +#if 0 + static boolean initialized = FALSE; +#endif + video.width = width; video.height = height; video.depth = GetRealDepth(depth); @@ -449,6 +453,15 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen) video.fullscreen_modes = NULL; #endif + 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 @@ -456,6 +469,10 @@ void InitVideoBuffer(int width, int height, int depth, boolean fullscreen) #endif drawto = backbuffer; + +#if 0 + initialized = TRUE; +#endif } inline static void FreeBitmapPointers(Bitmap *bitmap) @@ -706,14 +723,17 @@ void BlitBitmap(Bitmap *src_bitmap, Bitmap *dst_bitmap, height = dst_bitmap->height - dst_y; #endif -#if 0 +#if 1 + /* !!! 2013-12-11: An "old friend" is back. Same bug in SDL2 2.0.1 !!! */ +#if 1 /* !!! 2009-03-30: Fixed by using self-compiled, patched SDL.dll !!! */ /* (This bug still exists in the actual (as of 2009-06-15) version 1.2.13, but is already fixed in SVN and should therefore finally be fixed with the next official SDL release, which is probably version 1.2.14.) */ #if 1 /* !!! 2009-03-24: It seems that this problem still exists in 1.2.12 !!! */ -#if defined(TARGET_SDL) && defined(PLATFORM_WIN32) + //#if defined(TARGET_SDL) && defined(PLATFORM_WIN32) +#if defined(TARGET_SDL2) if (src_bitmap == dst_bitmap) { /* !!! THIS IS A BUG (IN THE SDL LIBRARY?) AND SHOULD BE FIXED !!! */ @@ -758,6 +778,7 @@ void BlitBitmap(Bitmap *src_bitmap, Bitmap *dst_bitmap, #endif #endif #endif +#endif #if 0 if (dst_x < gfx.sx + gfx.sxsize)