[Scummvm-git-logs] scummvm master -> ec4cce58cb53bdf7b42c9eeee8ccfce487009845
SupSuper
supsuper at gmail.com
Fri Jul 2 22:00:32 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ec4cce58cb TRECISION: Potential fix for BE color issues
Commit: ec4cce58cb53bdf7b42c9eeee8ccfce487009845
https://github.com/scummvm/scummvm/commit/ec4cce58cb53bdf7b42c9eeee8ccfce487009845
Author: SupSuper (supsuper at gmail.com)
Date: 2021-07-02T23:00:01+01:00
Commit Message:
TRECISION: Potential fix for BE color issues
Changed paths:
engines/trecision/graphics.cpp
diff --git a/engines/trecision/graphics.cpp b/engines/trecision/graphics.cpp
index 10413264f6..51a8d60416 100644
--- a/engines/trecision/graphics.cpp
+++ b/engines/trecision/graphics.cpp
@@ -243,8 +243,9 @@ void GraphicsManager::readSurface(Common::SeekableReadStream *stream, Graphics::
for (uint16 i = 0; i < count; ++i) {
for (uint16 y = 0; y < height; ++y) {
- void *p = surface->getBasePtr(width * i, y);
- stream->read(p, width * _rgb555Format.bytesPerPixel);
+ for (uint16 x = 0; x < width; ++x) {
+ surface->setPixel(width * i + x, y, stream->readUint16LE());
+ }
}
}
More information about the Scummvm-git-logs
mailing list