[PATCH] user32: scrollbars are vertical by default
Kees Beets
kbeets68 at gmail.com
Sat Mar 4 14:48:09 CST 2017
Fixes https://bugs.winehq.org/show_bug.cgi?id=38029
Changed calculation of boolean vertical in scroll.c to reflect that scroll bars are vertical by default.
Signed-off-by: Kees Beets <kbeets68 at gmail.com>
---
dlls/user32/scroll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index 4b572e5..202fac8 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -252,7 +252,7 @@ static BOOL SCROLL_GetScrollBarRect( HWND hwnd, INT nBar, RECT *lprect,
case SB_CTL:
GetClientRect( hwnd, lprect );
- vertical = ((wndPtr->dwStyle & SBS_VERT) != 0);
+ vertical = ((wndPtr->dwStyle & SBS_HORZ) == 0);
break;
default:
--
2.7.4
More information about the wine-patches
mailing list