[Scummvm-cvs-logs] scummvm master -> e88ce8d9630265e54e2a70b1fd71cc1537a28268
wjp
wjp at usecode.org
Tue Aug 27 00:01:55 CEST 2013
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:
e88ce8d963 WINTERMUTE: Simplify string matching
Commit: e88ce8d9630265e54e2a70b1fd71cc1537a28268
https://github.com/scummvm/scummvm/commit/e88ce8d9630265e54e2a70b1fd71cc1537a28268
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2013-08-26T15:00:37-07:00
Commit Message:
WINTERMUTE: Simplify string matching
Changed paths:
engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
diff --git a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
index a5b3505..382f506 100644
--- a/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_surface_osystem.cpp
@@ -143,7 +143,7 @@ bool BaseSurfaceOSystem::finishLoad() {
_width = image->getSurface()->w;
_height = image->getSurface()->h;
- bool isSaveGameGrayscale = scumm_strnicmp(_filename.c_str(), "savegame:", 9) == 0 && (_filename.c_str()[_filename.size() - 1] == 'g' || _filename.c_str()[_filename.size() - 1] == 'G');
+ bool isSaveGameGrayscale = _filename.matchString("savegame:*g", true);
if (isSaveGameGrayscale) {
warning("grayscaleConversion not yet implemented");
// FIBITMAP *newImg = FreeImage_ConvertToGreyscale(img); TODO
More information about the Scummvm-git-logs
mailing list