changeset 1790:a29f35c47da4

Updated checkbox style
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Mar 2019 09:35:17 -0700
parents b3eb74936f18
children 1843823f1e9b
files nuklear_ui/blastem_nuklear.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Tue Mar 19 18:56:21 2019 -0700
+++ b/nuklear_ui/blastem_nuklear.c	Wed Mar 20 09:35:17 2019 -0700
@@ -1924,6 +1924,9 @@
 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 @@
 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");