[Scummvm-git-logs] scummvm master -> a4b114a79bf3be6f94a00adb9ba4d21dfe60f4f4
mduggan
noreply at scummvm.org
Sat Apr 12 00:40:18 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a4b114a79b DGDS: Improve debug message on invalid image frame
Commit: a4b114a79bf3be6f94a00adb9ba4d21dfe60f4f4
https://github.com/scummvm/scummvm/commit/a4b114a79bf3be6f94a00adb9ba4d21dfe60f4f4
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2025-04-12T10:38:06+10:00
Commit Message:
DGDS: Improve debug message on invalid image frame
This may help with debugging #15859.
Changed paths:
engines/dgds/image.cpp
diff --git a/engines/dgds/image.cpp b/engines/dgds/image.cpp
index 3b001c52547..6175b1882b3 100644
--- a/engines/dgds/image.cpp
+++ b/engines/dgds/image.cpp
@@ -661,19 +661,19 @@ bool Image::loadSCN(Graphics::ManagedSurface *surf, Common::SeekableReadStream *
int16 Image::width(uint frameno) const {
if (frameno >= _frames.size())
- error("Invalid frameno %d", frameno);
+ error("Image::width: Invalid frameno %d requested from shape '%s'", frameno, _filename.c_str());
return _frames[frameno]->w;
}
int16 Image::height(uint frameno) const {
if (frameno >= _frames.size())
- error("Invalid frameno %d", frameno);
+ error("Image::height: Invalid frameno %d requested from shape '%s'", frameno, _filename.c_str());
return _frames[frameno]->h;
}
Common::SharedPtr<Graphics::ManagedSurface> Image::getSurface(uint frameno) const {
if (frameno >= _frames.size())
- error("Invalid frameno %d", frameno);
+ error("Image::getSurface: Invalid frameno %d requested from shape '%s'", frameno, _filename.c_str());
return _frames[frameno];
}
More information about the Scummvm-git-logs
mailing list