From ea0d122e4c2e27fde3cedde9d1f0d8f335ca162c Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 12 Dec 2019 22:54:55 +0100 Subject: [PATCH] [hellfire] palette_init bin exact (#1873) --- Source/palette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/palette.cpp b/Source/palette.cpp index f8dbad53d..db5f77b8c 100644 --- a/Source/palette.cpp +++ b/Source/palette.cpp @@ -28,9 +28,9 @@ void palette_init() memcpy(system_palette, orig_palette, sizeof(orig_palette)); LoadSysPal(); #ifdef __cplusplus - error_code = lpDDInterface->CreatePalette(DDPCAPS_ALLOW256 | DDPCAPS_8BIT, system_palette, &lpDDPalette, NULL); + error_code = lpDDInterface->CreatePalette(DDPCAPS_ALLOW256 | DDPCAPS_INITIALIZE | DDPCAPS_8BIT, system_palette, &lpDDPalette, NULL); #else - error_code = lpDDInterface->lpVtbl->CreatePalette(lpDDInterface, DDPCAPS_ALLOW256 | DDPCAPS_8BIT, system_palette, &lpDDPalette, NULL); + error_code = lpDDInterface->lpVtbl->CreatePalette(lpDDInterface, DDPCAPS_ALLOW256 | DDPCAPS_INITIALIZE | DDPCAPS_8BIT, system_palette, &lpDDPalette, NULL); #endif if (error_code) ErrDlg(IDD_DIALOG8, error_code, "C:\\Src\\Diablo\\Source\\PALETTE.CPP", 143);