Browse Source

really update screen

Wei Mingzhi 6 years ago
parent
commit
ddfb1dadc7
1 changed files with 8 additions and 1 deletions
  1. 8 1
      video.c

+ 8 - 1
video.c

@@ -571,6 +571,8 @@ VIDEO_Resize(
 --*/
 {
 #if SDL_VERSION_ATLEAST(2,0,0)
+   SDL_Rect rect;
+
    if (gpTexture)
    {
       SDL_DestroyTexture(gpTexture);
@@ -583,7 +585,12 @@ VIDEO_Resize(
       TerminateOnError("Re-creating texture failed on window resize!\n");
    }
 
-   VIDEO_RenderCopy();
+   rect.x = 0;
+   rect.y = 0;
+   rect.w = 320;
+   rect.h = 200;
+
+   VIDEO_UpdateScreen(&rect);
 #else
    DWORD                    flags;
    PAL_LARGE SDL_Color      palette[256];