[Scummvm-git-logs] scummvm master -> fd27e7fb75c8e370b0a18c8324fdf6531f3b254c
dreammaster
dreammaster at scummvm.org
Mon Mar 15 04:32:32 UTC 2021
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:
fd27e7fb75 ULTIMA: Remove wrong conditions
Commit: fd27e7fb75c8e370b0a18c8324fdf6531f3b254c
https://github.com/scummvm/scummvm/commit/fd27e7fb75c8e370b0a18c8324fdf6531f3b254c
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-03-14T21:32:30-07:00
Commit Message:
ULTIMA: Remove wrong conditions
button cannot be any of these values. It is not even the right enum.
Detected by Clang.
Changed paths:
engines/ultima/nuvie/gui/widgets/gui_widget.cpp
diff --git a/engines/ultima/nuvie/gui/widgets/gui_widget.cpp b/engines/ultima/nuvie/gui/widgets/gui_widget.cpp
index ccf319306b..5529018446 100644
--- a/engines/ultima/nuvie/gui/widgets/gui_widget.cpp
+++ b/engines/ultima/nuvie/gui/widgets/gui_widget.cpp
@@ -373,12 +373,6 @@ GUI_status GUI_Widget::HandleEvent(const Common::Event *event) {
button = Shared::whichButton(event->type);
if (focused || HitRect(x, y)) {
set_mousedown(SDL_GetTicks(), button);
-
- if (button == Common::EVENT_WHEELUP)
- return MouseWheel(0, 1);
- else if (button == Common::EVENT_WHEELDOWN)
- return MouseWheel(0, -1);
-
return(MouseDown(x, y, button));
}
break;
More information about the Scummvm-git-logs
mailing list