[Scummvm-git-logs] scummvm master -> 77c96b83a2223a10900b3996f72f254107d618f7
mduggan
mgithub at guarana.org
Tue May 12 09:03:53 UTC 2020
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:
77c96b83a2 ULTIMA8: Correct types to make amiga compiler happy
Commit: 77c96b83a2223a10900b3996f72f254107d618f7
https://github.com/scummvm/scummvm/commit/77c96b83a2223a10900b3996f72f254107d618f7
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2020-05-12T18:03:42+09:00
Commit Message:
ULTIMA8: Correct types to make amiga compiler happy
Changed paths:
engines/ultima/ultima8/gumps/shape_viewer_gump.cpp
diff --git a/engines/ultima/ultima8/gumps/shape_viewer_gump.cpp b/engines/ultima/ultima8/gumps/shape_viewer_gump.cpp
index ddc9858e9d..84218622b6 100644
--- a/engines/ultima/ultima8/gumps/shape_viewer_gump.cpp
+++ b/engines/ultima/ultima8/gumps/shape_viewer_gump.cpp
@@ -124,15 +124,15 @@ void ShapeViewerGump::PaintThis(RenderSurface *surf, int32 lerp_factor, bool /*s
{
// Dump the pixel val under the mouse cursor:
- int mx = 0;
- int my = 0;
+ int32 mx = 0;
+ int32 my = 0;
char buf2[200];
Mouse::get_instance()->getMouseCoords(mx, my);
ScreenSpaceToGump(mx, my);
- int relx = mx - (posx - _shapeX);
- int rely = my - (posy - _shapeY);
+ int32 relx = mx - (posx - _shapeX);
+ int32 rely = my - (posy - _shapeY);
if (shape_ && relx >= 0 && rely >= 0 && relx < _shapeW && rely < _shapeH) {
// get color
relx -= _shapeX;
More information about the Scummvm-git-logs
mailing list