[PATCH 2/2] user32: scrollbars are vertical by default
Kees Beets
kbeets68 at gmail.com
Sat Mar 4 14:29:12 CST 2017
Fixes https://bugs.winehq.org/show_bug.cgi?id=38029
Changed calculation of boolean vertical so that default is true.
Tested on Ubuntu 16.04.
Signed-off-by: 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