diff options
| -rw-r--r-- | engines/zvision/graphics/cursors/cursor.cpp | 2 | ||||
| -rw-r--r-- | engines/zvision/graphics/render_manager.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/graphics/cursors/cursor.cpp b/engines/zvision/graphics/cursors/cursor.cpp index 1b471d88b8..f32c68645d 100644 --- a/engines/zvision/graphics/cursors/cursor.cpp +++ b/engines/zvision/graphics/cursors/cursor.cpp @@ -61,7 +61,7 @@ ZorkCursor::ZorkCursor(ZVision *engine, const Common::String &fileName) uint32 bytesRead = file.read(_surface.getPixels(), dataSize); assert(bytesRead == dataSize); -#ifndef SCUMMVM_LITTLE_ENDIAN +#ifndef SCUMM_LITTLE_ENDIAN int16 *buffer = (int16 *)_surface.getPixels(); for (uint32 i = 0; i < dataSize / 2; ++i) buffer[i] = FROM_LE_16(buffer[i]); diff --git a/engines/zvision/graphics/render_manager.cpp b/engines/zvision/graphics/render_manager.cpp index a178c97639..033d099042 100644 --- a/engines/zvision/graphics/render_manager.cpp +++ b/engines/zvision/graphics/render_manager.cpp @@ -216,7 +216,7 @@ void RenderManager::readImageToSurface(const Common::String &fileName, Graphics: LzssReadStream lzssStream(&file); buffer = (uint16 *)(new uint16[decompressedSize]); lzssStream.read(buffer, 2 * decompressedSize); -#ifndef SCUMMVM_LITTLE_ENDIAN +#ifndef SCUMM_LITTLE_ENDIAN for (uint32 i = 0; i < decompressedSize; ++i) buffer[i] = FROM_LE_16(buffer[i]); #endif |
