diff options
author | Willem Jan Palenstijn | 2014-12-27 23:35:47 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2014-12-27 23:35:47 +0100 |
commit | cd595cb0ea65b5bd8b79cb7af35457d032d82e98 (patch) | |
tree | 8b6e777965b7e222a340e22f8ba8c7eb5cfeaffb /engines/zvision | |
parent | 5791f600e9b9808714b40a63acd09b5657c855f5 (diff) | |
download | scummvm-rg350-cd595cb0ea65b5bd8b79cb7af35457d032d82e98.tar.gz scummvm-rg350-cd595cb0ea65b5bd8b79cb7af35457d032d82e98.tar.bz2 scummvm-rg350-cd595cb0ea65b5bd8b79cb7af35457d032d82e98.zip |
ZVISION: Fix cursors on BE systems
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/graphics/cursors/cursor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/zvision/graphics/cursors/cursor.cpp b/engines/zvision/graphics/cursors/cursor.cpp index eb25e92860..1b471d88b8 100644 --- a/engines/zvision/graphics/cursors/cursor.cpp +++ b/engines/zvision/graphics/cursors/cursor.cpp @@ -60,6 +60,12 @@ ZorkCursor::ZorkCursor(ZVision *engine, const Common::String &fileName) _surface.create(_width, _height, engine->_resourcePixelFormat); uint32 bytesRead = file.read(_surface.getPixels(), dataSize); assert(bytesRead == dataSize); + +#ifndef SCUMMVM_LITTLE_ENDIAN + int16 *buffer = (int16 *)_surface.getPixels(); + for (uint32 i = 0; i < dataSize / 2; ++i) + buffer[i] = FROM_LE_16(buffer[i]); +#endif } ZorkCursor::ZorkCursor(const ZorkCursor &other) { |