[Scummvm-git-logs] scummvm master -> 85693e241b3ab43ab5c0466cf609166f51cfbcd1
AndywinXp
noreply at scummvm.org
Mon Mar 16 20:03:00 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:
85693e241b SCUMM: HE: Avoid WarpWiz left shift of negative value
Commit: 85693e241b3ab43ab5c0466cf609166f51cfbcd1
https://github.com/scummvm/scummvm/commit/85693e241b3ab43ab5c0466cf609166f51cfbcd1
Author: tunnelsociety (tunnelsociety at mm.st)
Date: 2026-03-16T21:02:55+01:00
Commit Message:
SCUMM: HE: Avoid WarpWiz left shift of negative value
Changed paths:
engines/scumm/he/wizwarp_he.cpp
diff --git a/engines/scumm/he/wizwarp_he.cpp b/engines/scumm/he/wizwarp_he.cpp
index 0c3e63279e1..e90b8d32c4d 100644
--- a/engines/scumm/he/wizwarp_he.cpp
+++ b/engines/scumm/he/wizwarp_he.cpp
@@ -30,7 +30,7 @@ namespace Scumm {
#define WARP_FRAC_SIZE (_vm->_game.heversion > 98 ? 20 : 16)
#define WARP_FRAC_VALUE (1 << (WARP_FRAC_SIZE))
#define WARP_TEXTURE_LIMIT (1 << (31 - (WARP_FRAC_SIZE)))
-#define WARP_TO_FRAC(_x_) ((_x_) << (WARP_FRAC_SIZE))
+#define WARP_TO_FRAC(_x_) ((_x_) * (1 << (WARP_FRAC_SIZE)))
#define WARP_FROM_FRAC(_x_) ((_x_) >> (WARP_FRAC_SIZE))
bool Wiz::warpDrawWiz(int image, int state, int polygon, int32 flags, int transparentColor, WizSimpleBitmap *optionalDestBitmap, const WizRawPixel *optionalColorConversionTable, int shadowImage) {
More information about the Scummvm-git-logs
mailing list