[Scummvm-git-logs] scummvm master -> 364d5d35c26712743ce74dd10aabc664dcceff9e
dreammaster
paulfgilbert at gmail.com
Wed Dec 19 04:35:19 CET 2018
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
364d5d35c2 GLK: More descriptive font loading error messages
Commit: 364d5d35c26712743ce74dd10aabc664dcceff9e
https://github.com/scummvm/scummvm/commit/364d5d35c26712743ce74dd10aabc664dcceff9e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2018-12-18T19:35:09-08:00
Commit Message:
GLK: More descriptive font loading error messages
Changed paths:
engines/glk/screen.cpp
diff --git a/engines/glk/screen.cpp b/engines/glk/screen.cpp
index 2891db1..b95de70 100644
--- a/engines/glk/screen.cpp
+++ b/engines/glk/screen.cpp
@@ -40,7 +40,7 @@ Screen::~Screen() {
void Screen::initialize() {
if (!loadFonts())
- error("Could not load data file");
+ error("Could not load fonts.dat");
// TODO: See if there's any better way for getting the leading and baseline
Common::Rect r1 = _fonts[7]->getBoundingBox('o');
@@ -154,7 +154,7 @@ const Graphics::Font *Screen::loadFont(FACES face, Common::Archive *archive, dou
};
if (!f.open(FILENAMES[face], *archive))
- error("Could not load font");
+ error("Could not load %s from fonts file", FILENAMES[face]);
return Graphics::loadTTFFont(f, (int)size, Graphics::kTTFSizeModeCharacter);
}
More information about the Scummvm-git-logs
mailing list