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

sev- noreply at scummvm.org
Thu Sep 5 15:03:24 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:
abdf8dad32 QDENGINE: Fix frame centering


Commit: abdf8dad326b3839c280780b63b6d204c750fa50
    https://github.com/scummvm/scummvm/commit/abdf8dad326b3839c280780b63b6d204c750fa50
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-09-05T17:03:06+02:00

Commit Message:
QDENGINE: Fix frame centering

Changed paths:
    engines/qdengine/debugger/debugtools.cpp


diff --git a/engines/qdengine/debugger/debugtools.cpp b/engines/qdengine/debugger/debugtools.cpp
index 147d9ce417b..0314af3a919 100644
--- a/engines/qdengine/debugger/debugtools.cpp
+++ b/engines/qdengine/debugger/debugtools.cpp
@@ -89,7 +89,7 @@ ImGuiImage getImageID(Common::Path filename, int frameNum) {
 	if (frame) {
 		grDispatcher::instance()->surfaceOverride(&surface);
 
-		frame->redraw(0, 0, 0);
+		frame->redraw(sx / 2, sy / 2, 0);
 
 		grDispatcher::instance()->resetSurfaceOverride();
 	}




More information about the Scummvm-git-logs mailing list