Shrink UICheckBox heights

This makes it much easier to check/uncheck the right items in a compact list.
This commit is contained in:
aquanull committed 2013-05-03 00:19:27 +08:00
1 parent f9c50c822a
commit bfe5aea1d1
1 file changed
+5 -2
+5 -2
View File
@@ -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;