diff options
author | Nipun Garg | 2019-08-06 17:00:45 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:32 +0200 |
commit | c95682dc5015f7975581d1082ccad54dc32f0caf (patch) | |
tree | 4d9e763af1358ae88e16e691d3076e10c4cc2c89 | |
parent | f11c3afea9542144e6e629e371ea097e622c3d59 (diff) | |
download | scummvm-rg350-c95682dc5015f7975581d1082ccad54dc32f0caf.tar.gz scummvm-rg350-c95682dc5015f7975581d1082ccad54dc32f0caf.tar.bz2 scummvm-rg350-c95682dc5015f7975581d1082ccad54dc32f0caf.zip |
HDB: Remove redundant TO_16_LE() calls
-rw-r--r-- | engines/hdb/gfx.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 8e2898f91a..29e1c557f8 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -818,7 +818,7 @@ bool Gfx::loadFont(const char *string) { u = y; v = _fontHeader.height - x - 1; ptr = (uint16 *)_fontSurfaces[i].getBasePtr(u, v); - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); } } @@ -868,7 +868,7 @@ bool Gfx::loadFont(const char *string) { for (int y = 0; y < _fontHeader.height; y++) { ptr = (uint16 *)_fontSurfaces[i].getBasePtr(0, y); for (int x = 0; x < cInfo->width; x++) { - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); ptr++; } } @@ -1196,7 +1196,7 @@ Graphics::Surface Picture::load(Common::SeekableReadStream *stream) { int u = y; int v = _height - x - 1; uint16 *ptr = (uint16 *)_surface.getBasePtr(u, v); - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); } } @@ -1207,7 +1207,7 @@ Graphics::Surface Picture::load(Common::SeekableReadStream *stream) { for (int y = 0; y < _height; y++) { uint16 *ptr = (uint16 *)_surface.getBasePtr(0, y); for (int x = 0; x < _width; x++) { - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); ptr++; } } @@ -1261,7 +1261,7 @@ Graphics::Surface Tile::load(Common::SeekableReadStream *stream) { int u = y; int v = 32 - x - 1; uint16 *ptr = (uint16 *)_surface.getBasePtr(u, v); - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); } } } else { @@ -1269,7 +1269,7 @@ Graphics::Surface Tile::load(Common::SeekableReadStream *stream) { for (uint y = 0; y < 32; y++) { uint16 *ptr = (uint16 *)_surface.getBasePtr(0, y); for (uint x = 0; x < 32; x++) { - *ptr = TO_LE_16(stream->readUint16LE()); + *ptr = stream->readUint16LE(); ptr++; } } |