GUI: Do an case-insensitive filename comparison.

Should be a bit safer, in case there's files with different cases, which match
by chance.
This commit is contained in:
Johannes Schickel 2012-01-06 22:27:26 +01:00
parent 4531f0173e
commit 47edab71e8

View File

@ -1412,7 +1412,7 @@ const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename) {
for (Common::ArchiveMemberList::const_iterator i = members.begin(), end = members.end(); i != end; ++i) {
Common::SeekableReadStream *stream = (*i)->createReadStream();
if (stream) {
if ((*i)->getName() == cacheFilename) {
if ((*i)->getName().equalsIgnoreCase(cacheFilename)) {
font = Graphics::BdfFont::loadFromCache(*stream);
} else {
font = Graphics::BdfFont::loadFont(*stream);