From 3fc929d66cdec22a6f5cc185d3f6492bf7ea6011 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 10 Feb 2013 15:56:18 +0100 Subject: HOPKINS: Fix cursor endian issue (I think) I had assumed that PAL_PIXELS contained the colors encoded in native byte order, but looking again it appears that it's always encoded as little-endian. --- engines/hopkins/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp index 3cacd369b1..c55d0c5395 100644 --- a/engines/hopkins/events.cpp +++ b/engines/hopkins/events.cpp @@ -485,7 +485,7 @@ void EventsManager::updateCursor() { for (int i = 0; i < PALETTE_SIZE; i++) { uint8 r, g, b; - pixelFormat.colorToRGB(paletteColors[i], r, g, b); + pixelFormat.colorToRGB(READ_LE_UINT16(&paletteColors[i]), r, g, b); cursorPalette[3 * i] = r; cursorPalette[3 * i + 1] = g; cursorPalette[3 * i + 2] = b; -- cgit v1.2.3