aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/scummfont.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fonts/scummfont.cpp')
-rw-r--r--graphics/fonts/scummfont.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/fonts/scummfont.cpp b/graphics/fonts/scummfont.cpp
index ea1935cea5..3331b72c47 100644
--- a/graphics/fonts/scummfont.cpp
+++ b/graphics/fonts/scummfont.cpp
@@ -303,9 +303,9 @@ void ScummFont::drawChar(Surface *dst, byte chr, int tx, int ty, uint32 color) c
}
c = ((buffer & mask) != 0);
if (c) {
- if (dst->bytesPerPixel == 1)
+ if (dst->format.bytesPerPixel == 1)
ptr[x] = color;
- else if (dst->bytesPerPixel == 2)
+ else if (dst->format.bytesPerPixel == 2)
((uint16 *)ptr)[x] = color;
}
}