[Scummvm-git-logs] scummvm master -> f898546f71c2c06ace4dfbde5ea13342bc2a93b1
digitall
547637+digitall at users.noreply.github.com
Wed Sep 30 19:58:27 UTC 2020
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:
f898546f71 GNAP: Improve Error Output When Bitmap Loading Fails
Commit: f898546f71c2c06ace4dfbde5ea13342bc2a93b1
https://github.com/scummvm/scummvm/commit/f898546f71c2c06ace4dfbde5ea13342bc2a93b1
Author: D G Turner (digitall at scummvm.org)
Date: 2020-09-30T20:56:30+01:00
Commit Message:
GNAP: Improve Error Output When Bitmap Loading Fails
Users are reporting failure, but it is not clear which bitmap resource
is causing this, hence this change.
Changed paths:
engines/gnap/gamesys.cpp
diff --git a/engines/gnap/gamesys.cpp b/engines/gnap/gamesys.cpp
index 04247c5d46..cc8adb7ea9 100644
--- a/engines/gnap/gamesys.cpp
+++ b/engines/gnap/gamesys.cpp
@@ -396,11 +396,11 @@ void GameSys::drawBitmap(int resourceId) {
Graphics::Surface *bmpSurface = loadBitmap(resourceId);
if (!bmpSurface)
- error("GameSys::drawBitmap() Error loading the bitmap");
+ error("GameSys::drawBitmap(%08X) Error loading the bitmap", resourceId);
if (bmpSurface->format != _backgroundSurface->format
|| bmpSurface->w != _backgroundSurface->w || bmpSurface->h != _backgroundSurface->h)
- error("GameSys::drawBitmap() Different bitmap properties than current background");
+ error("GameSys::drawBitmap(%08X) Different bitmap properties than current background", resourceId);
byte *src = (byte *)bmpSurface->getPixels();
byte *dst = (byte *)_backgroundSurface->getPixels();
More information about the Scummvm-git-logs
mailing list