From d7a452a6f670aa1df3e505d21880740299bc0539 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 10 Oct 2016 10:18:32 +0200 Subject: GRAPHICS: Use PIXEL_SIZE as BDF font size --- devtools/convbdf.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'devtools') 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 ")) { -- cgit v1.2.3