[Scummvm-git-logs] scummvm master -> b522d1e4961ee0b8f3015e41c00a2038d0f9cfa8

whoozle noreply at scummvm.org
Mon Mar 9 00:34:24 UTC 2026


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:
b522d1e496 PHOENIXVR: fix hint mode assertion


Commit: b522d1e4961ee0b8f3015e41c00a2038d0f9cfa8
    https://github.com/scummvm/scummvm/commit/b522d1e4961ee0b8f3015e41c00a2038d0f9cfa8
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-03-09T00:33:33Z

Commit Message:
PHOENIXVR: fix hint mode assertion

Changed paths:
    engines/phoenixvr/vr.cpp


diff --git a/engines/phoenixvr/vr.cpp b/engines/phoenixvr/vr.cpp
index 7a759cc2afd..86dcadaf5fd 100644
--- a/engines/phoenixvr/vr.cpp
+++ b/engines/phoenixvr/vr.cpp
@@ -435,8 +435,11 @@ void VR::render(Graphics::Screen *screen, float ax, float ay, float fov, float d
 		Common::Rect::getBlitRect(dst, src, screen->getBounds());
 		screen->copyRectToSurface(*_pic, dst.x, dst.y, src);
 		if (regSet) {
-			for (auto &rect : regSet->getRegions())
-				screen->drawRoundRect(rect.toRect().toRect(), 4, _pic->format.RGBToColor(255, 255, 255), false);
+			for (auto &rect : regSet->getRegions()) {
+				auto dstRect = rect.toRect().toRect();
+				if (dstRect.isValidRect())
+					screen->drawRoundRect(dstRect, 4, _pic->format.RGBToColor(255, 255, 255), false);
+			}
 		}
 	} else {
 		auto w = g_system->getWidth();




More information about the Scummvm-git-logs mailing list