浏览代码

fixed: ending not shown correctly (not tested)

Wei Mingzhi 10 年之前
父节点
当前提交
f300050487
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ending.c

+ 4 - 0
ending.c

@@ -202,6 +202,10 @@ PAL_ScrollFBP(
       return;
    }
 
+#if SDL_VERSION_ATLEAST(2, 0, 0)
+   SDL_SetSurfacePalette(p, gpScreen->format->palette);
+#endif
+
    VIDEO_BackupScreen();
    PAL_FBPBlitToSurface(buf, p);