aboutsummaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-10 10:18:32 +0200
committerEugene Sandulenko2016-10-10 14:00:41 +0200
commitd7a452a6f670aa1df3e505d21880740299bc0539 (patch)
tree3fdebb269f6de72d8d93189f694b320ecff5ec78 /devtools
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 'devtools')
-rw-r--r--devtools/convbdf.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/devtools/convbdf.cpp b/devtools/convbdf.cpp
index 5fbcd98b25..6ec453db38 100644
--- a/devtools/convbdf.cpp
+++ b/devtools/convbdf.cpp
@@ -142,10 +142,9 @@ int main(int argc, char *argv[]) {
if (in.fail() || in.eof())
error("Premature end of file");
- if (hasPrefix(line, "SIZE ")) {
- int hDpi, vDpi;
- if (sscanf(line.c_str(), "SIZE %d %d %d", &font.size, &hDpi, &vDpi) != 3)
- error("Invalid SIZE");
+ if (hasPrefix(line, "PIXEL_SIZE ")) {
+ if (sscanf(line.c_str(), "PIXEL_SIZE %d", &font.size) != 1)
+ error("Invalid PIXEL_SIZE");
} else if (hasPrefix(line, "FONT ")) {
fontName = line.substr(5);
} else if (hasPrefix(line, "COPYRIGHT ")) {