mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-22 22:58:12 +03:00
pms: Fix palette mask handling
The PMS palette mask is 16 bits, not 8 bits. This fixes a color issue in Rance 4.1.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ void AGS::load_pms(uint8* data, bool set_palette, int transparent)
|
||||
int ey = data[0x6] | (data[0x7] << 8);
|
||||
int width = ex - sx + 1;
|
||||
int height = ey - sy + 1;
|
||||
uint8 mask = data[0xa];
|
||||
uint16_t mask = data[0xa] | (data[0xb] << 8);
|
||||
|
||||
// Jコマンドの処理
|
||||
if(set_cg_dest) {
|
||||
|
||||
Reference in New Issue
Block a user