diff options
author | Torbjörn Andersson | 2013-02-10 15:56:18 +0100 |
---|---|---|
committer | Torbjörn Andersson | 2013-02-10 15:56:18 +0100 |
commit | 3fc929d66cdec22a6f5cc185d3f6492bf7ea6011 (patch) | |
tree | ec79ed78a0e2041662dee7c4fd720aa263c2d597 | |
parent | f6456003e1153709788b306e4cd509576e8ab338 (diff) | |
download | scummvm-rg350-3fc929d66cdec22a6f5cc185d3f6492bf7ea6011.tar.gz scummvm-rg350-3fc929d66cdec22a6f5cc185d3f6492bf7ea6011.tar.bz2 scummvm-rg350-3fc929d66cdec22a6f5cc185d3f6492bf7ea6011.zip |
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.
-rw-r--r-- | engines/hopkins/events.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |