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

SupSuper noreply at scummvm.org
Sun Sep 8 23:13:20 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:
c33c0eef3c QDENGINE: DT: Fix double/float truncation


Commit: c33c0eef3c5f9f8666b6bf339e21c19fc9dac618
    https://github.com/scummvm/scummvm/commit/c33c0eef3c5f9f8666b6bf339e21c19fc9dac618
Author: SupSuper (supsuper at gmail.com)
Date: 2024-09-09T00:10:35+01:00

Commit Message:
QDENGINE: DT: Fix double/float truncation

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


diff --git a/engines/qdengine/debugger/debugtools.cpp b/engines/qdengine/debugger/debugtools.cpp
index 84281f300f8..7e41a329eac 100644
--- a/engines/qdengine/debugger/debugtools.cpp
+++ b/engines/qdengine/debugger/debugtools.cpp
@@ -94,7 +94,7 @@ ImGuiImage getImageID(Common::Path filename, int frameNum) {
 		}
 	} else if (frameNum < 0) { // Tiles
 		if (animation->tileAnimation()) {
-			surface = animation->tileAnimation()->dumpFrameTiles(-frameNum + 1, 0.91670);
+			surface = animation->tileAnimation()->dumpFrameTiles(-frameNum + 1, 0.91670f);
 
 			sx = surface->w;
 			sy = surface->h;
@@ -119,7 +119,7 @@ ImGuiImage getImageID(Common::Path filename, int frameNum) {
 		animation->set_cur_frame(frameNum);
 
 		grDispatcher::instance()->surfaceOverride(surface);
-		animation->redraw(sx / 2, sy / 2, 0, 0.91670, 0);
+		animation->redraw(sx / 2, sy / 2, 0, 0.91670f, 0);
 		grDispatcher::instance()->resetSurfaceOverride();
 	}
 




More information about the Scummvm-git-logs mailing list