diff options
author | Robert Müller <robert.mueller@uni-siegen.de> | 2021-12-10 15:46:20 +0100 |
---|---|---|
committer | Robert Müller <robert.mueller@uni-siegen.de> | 2021-12-10 15:51:05 +0100 |
commit | 3e4029d89b7def1aabecab025ad7bfcc20812635 (patch) | |
tree | cf38ccd8e2d6f3489171298d1d2248c5ff4b6a60 | |
parent | d3f390821bb9fea1c7998b76ce1025e280eb0f3a (diff) |
fix size of labeled scrollbar handle
-rw-r--r-- | src/game/client/ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/ui.cpp b/src/game/client/ui.cpp index 44c66cfa5..cf65fcf6a 100644 --- a/src/game/client/ui.cpp +++ b/src/game/client/ui.cpp @@ -498,7 +498,7 @@ float CUI::DoScrollbarV(const void *pID, const CUIRect *pRect, float Current) pRect->VMargin(5.0f, &Rail); CUIRect Handle; - Rail.HSplitTop(clamp(33.0f, Rail.w, Rail.h / 8.0f), &Handle, 0); + Rail.HSplitTop(clamp(33.0f, Rail.w, Rail.h / 3.0f), &Handle, 0); Handle.y += (Rail.h - Handle.h) * Current; // logic @@ -560,7 +560,7 @@ float CUI::DoScrollbarH(const void *pID, const CUIRect *pRect, float Current) pRect->HMargin(5.0f, &Rail); CUIRect Handle; - Rail.VSplitLeft(clamp(33.0f, Rail.h, Rail.w / 8.0f), &Handle, 0); + Rail.VSplitLeft(clamp(33.0f, Rail.h, Rail.w / 3.0f), &Handle, 0); Handle.x += (Rail.w - Handle.w) * Current; // logic |