mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-09-30 19:07:59 +03:00
AGS: Introduce Palette type
This commit is contained in:
+2
-2
@@ -162,7 +162,7 @@ AGS::AGS(const Config& config, const GameId& game_id) : game_id(game_id), dirty(
|
||||
acg.open("ACG.DAT");
|
||||
|
||||
// パレット
|
||||
memset(program_palette, 0, sizeof(program_palette));
|
||||
program_palette = {0};
|
||||
program_palette[0x00] = SETPALETTE16(0x0, 0x0, 0x0);
|
||||
program_palette[0x01] = SETPALETTE16(0x0, 0x0, 0xa);
|
||||
program_palette[0x02] = SETPALETTE16(0xa, 0x0, 0x0);
|
||||
@@ -224,7 +224,7 @@ AGS::AGS(const Config& config, const GameId& game_id) : game_id(game_id), dirty(
|
||||
}
|
||||
}
|
||||
|
||||
memcpy(screen_palette, program_palette, sizeof(program_palette));
|
||||
screen_palette = program_palette;
|
||||
|
||||
// Bコマンド
|
||||
for(int i = 0; i < 10; i++) {
|
||||
|
||||
Reference in New Issue
Block a user