aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-10 10:18:32 +0200
committerEugene Sandulenko2016-10-10 14:00:41 +0200
commitd7a452a6f670aa1df3e505d21880740299bc0539 (patch)
tree3fdebb269f6de72d8d93189f694b320ecff5ec78 /graphics
parent93392024d2b78ca5167e7d48cd55847c97883d55 (diff)
downloadscummvm-rg350-d7a452a6f670aa1df3e505d21880740299bc0539.tar.gz
scummvm-rg350-d7a452a6f670aa1df3e505d21880740299bc0539.tar.bz2
scummvm-rg350-d7a452a6f670aa1df3e505d21880740299bc0539.zip
GRAPHICS: Use PIXEL_SIZE as BDF font size
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fonts/bdf.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp
index 1a23133858..9c5105d8b5 100644
--- a/graphics/fonts/bdf.cpp
+++ b/graphics/fonts/bdf.cpp
@@ -336,10 +336,9 @@ BdfFont *BdfFont::loadFont(Common::SeekableReadStream &stream) {
font.defaultBox.height = height;
font.defaultBox.xOffset = xOffset;
font.defaultBox.yOffset = yOffset;
- } else if (line.hasPrefix("SIZE ")) {
- int hDpi, vDpi;
- if (sscanf(line.c_str(), "SIZE %d %d %d", &font.size, &hDpi, &vDpi) != 3) {
- warning("BdfFont::loadFont: Invalid SIZE");
+ } else if (line.hasPrefix("PIXEL_SIZE ")) {
+ if (sscanf(line.c_str(), "PIXEL_SIZE %d", &font.size) != 1) {
+ warning("BdfFont::loadFont: Invalid PIXEL_SIZE");
freeBitmaps(bitmaps, font.numCharacters);
delete[] bitmaps;
delete[] advances;