Move CG display flags to NACT

This commit is contained in:
kichikuou
2026-09-02 11:41:24 +09:00
parent 8a12fc50e7
commit 4a58251afd
16 changed files with 90 additions and 77 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
#include "game_id.h"
#include <string.h>
CG AGS::load_pms(int page, const std::vector<uint8_t>& data, bool set_palette, int transparent)
CG AGS::load_pms(int page, const std::vector<uint8_t>& data, bool set_palette, int transparent, uint8_t flags)
{
// ヘッダ取得
int sx = data[0x0] | (data[0x1] << 8);
@@ -19,7 +19,7 @@ CG AGS::load_pms(int page, const std::vector<uint8_t>& data, bool set_palette, i
int height = ey - sy + 1;
uint16_t mask = data[0xa] | (data[0xb] << 8);
if(get_palette) {
if (flags & CG_GET_PALETTE) {
SDL_Color colors[256];
int p = 0x20;
for(int i = 0; i < 16; i++) {