mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #245 from adrian17/fix_hscrollbar
Fixed horizontal scrollbar not drawing properly
This commit is contained in:
commit
ec48d91333
|
@ -848,7 +848,7 @@ static void widget_hscrollbar_draw(rct_drawpixelinfo *dpi, rct_scroll *scroll, i
|
||||||
// Thumb
|
// Thumb
|
||||||
gfx_fill_rect_inset(dpi,
|
gfx_fill_rect_inset(dpi,
|
||||||
max(l + 10, l + scroll->h_thumb_left - 1), t,
|
max(l + 10, l + scroll->h_thumb_left - 1), t,
|
||||||
min(r - 10, r + scroll->h_thumb_right - 1), t,
|
min(r - 10, l + scroll->h_thumb_right - 1), b,
|
||||||
colour, (scroll->flags & HSCROLLBAR_THUMB_PRESSED ? 0x20 : 0));
|
colour, (scroll->flags & HSCROLLBAR_THUMB_PRESSED ? 0x20 : 0));
|
||||||
|
|
||||||
// Right button
|
// Right button
|
||||||
|
|
Loading…
Reference in New Issue