From bfe5aea1d1c4e0bc3e87a28a2bc9aaae4605a3c0 Mon Sep 17 00:00:00 2001 From: aquanull Date: Fri, 3 May 2013 00:19:27 +0800 Subject: [PATCH] Shrink UICheckBox heights This makes it much easier to check/uncheck the right items in a compact list. --- ui/ui.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index 301fc9cda8..9fd6769a06 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -315,9 +315,12 @@ int UITextureButton(UIContext *ctx, int id, const LayoutManager &layout, float w return clicked; } - int UICheckBox(int id, int x, int y, const char *text, int align, bool *value) { - const int h = 64; +#ifdef _WIN32 + const int h = 32; +#else + const int h = 48; +#endif float tw, th; ui_draw2d.MeasureText(theme.uiFont, text, &tw, &th); int w = themeAtlas->images[theme.checkOn].w + UI_SPACE + tw;