aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-12 17:59:16 +0200
committerEugene Sandulenko2019-09-03 17:17:33 +0200
commiteecd232132529b48789a7317f2ebddc46ac6d596 (patch)
treec61d55524400ad3bc68c339c6a54a7513a1ff4f3
parent0536d53dbe30378071a29a47ed164062b27ec6d3 (diff)
downloadscummvm-rg350-eecd232132529b48789a7317f2ebddc46ac6d596.tar.gz
scummvm-rg350-eecd232132529b48789a7317f2ebddc46ac6d596.tar.bz2
scummvm-rg350-eecd232132529b48789a7317f2ebddc46ac6d596.zip
HDB: First attempt to fix PPC graphics
-rw-r--r--engines/hdb/gfx.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 869790b316..8edc006429 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -833,11 +833,11 @@ bool Gfx::loadFont(const char *string) {
// Go to character location
memoryStream.seek(startPos + cInfo->offset);
- for (int y = 0; y < _fontHeader.height; y++) {
- for (int x = 0; x < cInfo->width; x++) {
+ for (int x = 0; x < cInfo->width; x++) {
+ for (int y = 0; y < _fontHeader.height; y++) {
int u, v;
u = y;
- v = cInfo->width - x - 1;
+ v = x;
ptr = (uint16 *)_fontSurfaces[i].getBasePtr(u, v);
*ptr = memoryStream.readUint16LE();
}
@@ -1211,10 +1211,10 @@ Graphics::Surface Picture::load(Common::SeekableReadStream *stream) {
if (g_hdb->isPPC()) {
_surface.create(_height, _width, g_hdb->_format);
- for (int y = 0; y < _height; y++) {
- for (int x = 0; x < _width; x++) {
+ for (int x = 0; x < _width; x++) {
+ for (int y = 0; y < _height; y++) {
int u = y;
- int v = _width - x - 1;
+ int v = x;
uint16 *ptr = (uint16 *)_surface.getBasePtr(u, v);
*ptr = stream->readUint16LE();
}