Browse Source

fixed: ending not shown correctly (not tested)

Wei Mingzhi 9 years ago
parent
commit
f300050487
1 changed files with 4 additions and 0 deletions
  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);