mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
ZVISION: Fix cursors on BE systems
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user