浏览代码

Fix compilation

Sylvain 2 年之前
父节点
当前提交
ab0c5cf07d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cmake/test/main_gui.c

+ 1 - 1
cmake/test/main_gui.c

@@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
         return 1;
     }
     screenSurface = SDL_GetWindowSurface(window);
-    SDL_FillRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
+    SDL_FillSurfaceRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
     SDL_UpdateWindowSurface(window);
     SDL_Delay(100);
     SDL_DestroyWindow(window);