aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/hdb/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 217d6bb6f2..8805da01d7 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -815,7 +815,7 @@ bool Gfx::loadFont(const char *string) {
for (int x = 0; x < cInfo->width; x++) {
int u, v;
u = y;
- v = _fontHeader.height - x - 1;
+ v = cInfo->width - x - 1;
ptr = (uint16 *)_fontSurfaces[i].getBasePtr(u, v);
*ptr = memoryStream.readUint16LE();
}
@@ -1192,7 +1192,7 @@ Graphics::Surface Picture::load(Common::SeekableReadStream *stream) {
for (int y = 0; y < _height; y++) {
for (int x = 0; x < _width; x++) {
int u = y;
- int v = _height - x - 1;
+ int v = _width - x - 1;
uint16 *ptr = (uint16 *)_surface.getBasePtr(u, v);
*ptr = stream->readUint16LE();
}