[Scummvm-git-logs] scummvm master -> 994df4d2338b77b9e6d5d0880ad9032b7693c32d
bluegr
noreply at scummvm.org
Wed Dec 4 21:14:52 UTC 2024
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:
994df4d233 QDENGINE: Avoid stack overflow with the 3DS port
Commit: 994df4d2338b77b9e6d5d0880ad9032b7693c32d
https://github.com/scummvm/scummvm/commit/994df4d2338b77b9e6d5d0880ad9032b7693c32d
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-12-04T23:14:48+02:00
Commit Message:
QDENGINE: Avoid stack overflow with the 3DS port
Changed paths:
engines/qdengine/qdcore/util/splash_screen.cpp
diff --git a/engines/qdengine/qdcore/util/splash_screen.cpp b/engines/qdengine/qdcore/util/splash_screen.cpp
index b00ec209331..8400e12287e 100644
--- a/engines/qdengine/qdcore/util/splash_screen.cpp
+++ b/engines/qdengine/qdcore/util/splash_screen.cpp
@@ -38,12 +38,12 @@ namespace QDEngine {
bool SplashScreen::create(int bitmapResID) {
if (!create_window()) return false;
- Common::PEResources r;
+ Common::ScopedPtr<Common::PEResources> r(new Common::PEResources());
Common::WinResourceID resid(bitmapResID);
Image::BitmapDecoder decoder;
- if (r.loadFromEXE(g_engine->getExeName())) {
- Common::SeekableReadStream *stream = r.getResource(Common::kWinBitmap, resid);
+ if (r->loadFromEXE(g_engine->getExeName())) {
+ Common::SeekableReadStream *stream = r->getResource(Common::kWinBitmap, resid);
if (stream && decoder.loadStream(*stream)) {
_splash = new Graphics::Surface();
_splash->copyFrom(*decoder.getSurface());
More information about the Scummvm-git-logs
mailing list