| commit | cbbc7c3d602dc4cfdf65661a258d42a6da93c26c | [log] [tgz] |
|---|---|---|
| author | Chris Morgan <cmorgan@codeweavers.com> | Sun Nov 26 22:36:53 2000 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Sun Nov 26 22:36:53 2000 +0000 |
| tree | aca7c48a4e9eb3c94f0155f15a4336d6ab17d688 | |
| parent | 3c379ddc6b4e3d8f4615de70871508775227f36e [diff] [blame] |
Don't draw scrollbars if their client rectangle is empty.
diff --git a/controls/scroll.c b/controls/scroll.c index 2b8f3f4..1f272e7 100644 --- a/controls/scroll.c +++ b/controls/scroll.c
@@ -790,6 +790,10 @@ vertical = SCROLL_GetScrollBarRect( hwnd, nBar, &rect, &arrowSize, &thumbSize, &thumbPos ); + /* do not draw if the scrollbar rectangle is empty */ + if(IsRectEmpty(&rect)) + goto END; + if (Save_SCROLL_MovingThumb && (SCROLL_TrackingWin == hwnd) && (SCROLL_TrackingBar == nBar))