mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Shrink UICheckBox heights
This makes it much easier to check/uncheck the right items in a compact list.
This commit is contained in:
1 parent
f9c50c822a
commit
bfe5aea1d1
1 file changed
+5
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user