summaryrefslogtreecommitdiff
path: root/nuklear_ui
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-03-20 09:35:17 -0700
committerMichael Pavone <pavone@retrodev.com>2019-03-20 09:35:17 -0700
commitcd46470996e63c540e2e3e46c7db346277b32879 (patch)
tree2fd8f54598a4603548387ab7df6ab220e7ab1229 /nuklear_ui
parent427beb8c1227221e3c84c488dece6fae6f9b8da2 (diff)
Updated checkbox style
Diffstat (limited to 'nuklear_ui')
-rw-r--r--nuklear_ui/blastem_nuklear.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nuklear_ui/blastem_nuklear.c b/nuklear_ui/blastem_nuklear.c
index ebd8c43..4ab8586 100644
--- a/nuklear_ui/blastem_nuklear.c
+++ b/nuklear_ui/blastem_nuklear.c
@@ -1924,6 +1924,9 @@ static void texture_init(void)
static void context_created(void)
{
context = nk_sdl_init(render_get_window());
+ context->style.checkbox.padding.x = render_height() / 120;
+ context->style.checkbox.padding.y = render_height() / 120;
+ context->style.checkbox.border = render_height() / 240;
texture_init();
}
@@ -2003,6 +2006,9 @@ ui_image *load_ui_image(char *name)
void blastem_nuklear_init(uint8_t file_loaded)
{
context = nk_sdl_init(render_get_window());
+ context->style.checkbox.padding.x = render_height() / 120;
+ context->style.checkbox.padding.y = render_height() / 120;
+ context->style.checkbox.border = render_height() / 240;
controller_360 = load_ui_image("images/360.png");
controller_ps4 = load_ui_image("images/ps4.png");