浏览代码

really update screen

Wei Mingzhi 8 年之前
父节点
当前提交
ddfb1dadc7
共有 1 个文件被更改,包括 8 次插入1 次删除
  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];