=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: comctl32/treeview: Get rid of useless casts.
Alexandre Julliard
julliard at winehq.org
Fri Jun 14 16:52:17 CDT 2019
Module: wine
Branch: master
Commit: 3e1d8ab501ed68e7648cec5f8039a05e8fa13db3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3e1d8ab501ed68e7648cec5f8039a05e8fa13db3
Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date: Wed Jun 5 14:39:02 2019 +0300
comctl32/treeview: Get rid of useless casts.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/treeview.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 6854b0c..3c73964 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -5027,7 +5027,7 @@ static LRESULT
TREEVIEW_MouseWheel(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
{
short wheelDelta;
- UINT pulScrollLines = 3;
+ INT pulScrollLines = 3;
if (wParam & (MK_SHIFT | MK_CONTROL))
return DefWindowProcW(infoPtr->hwnd, WM_MOUSEWHEEL, wParam, lParam);
@@ -5051,8 +5051,8 @@ TREEVIEW_MouseWheel(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
int maxDy;
int lineScroll;
- lineScroll = pulScrollLines * (float)infoPtr->wheelRemainder / WHEEL_DELTA;
- infoPtr->wheelRemainder -= WHEEL_DELTA * lineScroll / (int)pulScrollLines;
+ lineScroll = pulScrollLines * infoPtr->wheelRemainder / WHEEL_DELTA;
+ infoPtr->wheelRemainder -= WHEEL_DELTA * lineScroll / pulScrollLines;
newDy = infoPtr->firstVisible->visibleOrder - lineScroll;
maxDy = infoPtr->maxVisibleOrder;
More information about the wine-cvs
mailing list