[Scummvm-git-logs] scummvm master -> 38bd3f675c55fae51b7924384d5cdaa06d707778

AndywinXp noreply at scummvm.org
Thu Jun 19 20:17:25 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
38bd3f675c LASTEXPRESS: Change more FROM_LE to READ_LE


Commit: 38bd3f675c55fae51b7924384d5cdaa06d707778
    https://github.com/scummvm/scummvm/commit/38bd3f675c55fae51b7924384d5cdaa06d707778
Author: AndywinXp (andywinxp at gmail.com)
Date: 2025-06-19T22:17:20+02:00

Commit Message:
LASTEXPRESS: Change more FROM_LE to READ_LE

Changed paths:
    engines/lastexpress/data/archive.cpp


diff --git a/engines/lastexpress/data/archive.cpp b/engines/lastexpress/data/archive.cpp
index df8a9a5e6e6..72eb89edc8e 100644
--- a/engines/lastexpress/data/archive.cpp
+++ b/engines/lastexpress/data/archive.cpp
@@ -547,12 +547,12 @@ void ArchiveManager::loadMice() {
 		closeHPF(archive);
 
 		for (int i = 0; i < 0xC000; i++) {
-			_engine->getGraphicsManager()->_iconsBitmapData[i] = FROM_LE_16(_engine->getGraphicsManager()->_iconsBitmapData[i]);
+			_engine->getGraphicsManager()->_iconsBitmapData[i] = (PixMap)READ_LE_UINT16(&_engine->getGraphicsManager()->_iconsBitmapData[i]);
 		}
 
 		for (int i = 0; i < 48; i++) {
-			_engine->getGraphicsManager()->_cursorsDataHeader->hotspotX = FROM_LE_16(_engine->getGraphicsManager()->_cursorsDataHeader->hotspotX);
-			_engine->getGraphicsManager()->_cursorsDataHeader->hotspotY = FROM_LE_16(_engine->getGraphicsManager()->_cursorsDataHeader->hotspotY);
+			_engine->getGraphicsManager()->_cursorsDataHeader->hotspotX = READ_LE_INT16(&_engine->getGraphicsManager()->_cursorsDataHeader->hotspotX);
+			_engine->getGraphicsManager()->_cursorsDataHeader->hotspotY = READ_LE_INT16(&_engine->getGraphicsManager()->_cursorsDataHeader->hotspotY);
 		}
 
 		_engine->getGraphicsManager()->modifyPalette(_engine->getGraphicsManager()->_iconsBitmapData, 0xC000);




More information about the Scummvm-git-logs mailing list