浏览代码

Palette fix

louyihua 9 年之前
父节点
当前提交
5d8a852b01
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      video.c

+ 1 - 4
video.c

@@ -612,10 +612,7 @@ VIDEO_SetPalette(
       return;
    }
 
-   for (i = 0; i < 256; i++)
-   {
-      palette->colors[i] = rgPalette[i];
-   }
+   SDL_SetPaletteColors(palette, rgPalette, 0, 256);
 
    SDL_SetSurfacePalette(gpScreen, palette);
    SDL_SetSurfacePalette(gpScreenBak, palette);