[Scummvm-git-logs] scummvm master -> 56701f386ed77ee8ee7fb32be6a101efe71d82f4

sev- noreply at scummvm.org
Sat Aug 31 18:47:11 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:
56701f386e QDENGINE: Fix mask rendering by removing unnecessary * 2 multiplication


Commit: 56701f386ed77ee8ee7fb32be6a101efe71d82f4
    https://github.com/scummvm/scummvm/commit/56701f386ed77ee8ee7fb32be6a101efe71d82f4
Author: kunxl-gg (tiwari.25 at iitj.ac.in)
Date: 2024-08-31T20:47:07+02:00

Commit Message:
QDENGINE: Fix mask rendering by removing unnecessary * 2 multiplication

Signed-off-by: kunxl-gg <tiwari.25 at iitj.ac.in>

Changed paths:
    engines/qdengine/system/graphics/gr_draw_sprite_rle.cpp


diff --git a/engines/qdengine/system/graphics/gr_draw_sprite_rle.cpp b/engines/qdengine/system/graphics/gr_draw_sprite_rle.cpp
index 35696a4fd3e..f2fce6df05a 100644
--- a/engines/qdengine/system/graphics/gr_draw_sprite_rle.cpp
+++ b/engines/qdengine/system/graphics/gr_draw_sprite_rle.cpp
@@ -248,8 +248,6 @@ void grDispatcher::putSprMask_rle(int x, int y, int sx, int sy, const RLEBuffer
 	int dx = -1;
 	int dy = -1;
 
-	x *= 2;
-
 	if (mode & GR_FLIP_HORIZONTAL) {
 		x += (psx - 1) * 2;
 		px = sx - px - psx;




More information about the Scummvm-git-logs mailing list