aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-15 10:12:14 +0000
committerMartin Kiewitz2009-10-15 10:12:14 +0000
commit022491c1cd7a8b3da5ed14d6dd04846ac7d44beb (patch)
tree037c62d6073628a401e1af13f89bbf8b9f4a36b6
parentc3e1f7be6b2810f95a5fa14df716292db71a30c2 (diff)
downloadscummvm-rg350-022491c1cd7a8b3da5ed14d6dd04846ac7d44beb.tar.gz
scummvm-rg350-022491c1cd7a8b3da5ed14d6dd04846ac7d44beb.tar.bz2
scummvm-rg350-022491c1cd7a8b3da5ed14d6dd04846ac7d44beb.zip
SCI/newgui: longbow palette 999 doesnt have mapping, so palette was detected as SCI1.1, changed detection. fixes black windows
svn-id: r45110
-rw-r--r--engines/sci/gui/gui_palette.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/gui/gui_palette.cpp b/engines/sci/gui/gui_palette.cpp
index 7dd6a4d9d0..dd32c3940c 100644
--- a/engines/sci/gui/gui_palette.cpp
+++ b/engines/sci/gui/gui_palette.cpp
@@ -84,7 +84,7 @@ void SciGuiPalette::createFromData(byte *data, GuiPalette *paletteOut) {
for (colorNo = 0; colorNo < 256; colorNo++) {
paletteOut->mapping[colorNo] = colorNo;
}
- if (data[0] == 0 && data[1] == 1) {
+ if ((data[0] == 0 && data[1] == 1) || (data[0] == 0 && data[1] == 0 && READ_LE_UINT16(data + 29) == 0)) {
// SCI0/SCI1 palette
palFormat = SCI_PAL_FORMAT_VARIABLE; // CONSTANT;
palOffset = 260;