diff nuklear_ui/blastem_nuklear.c @ 2643:57345f6e18f3

Space out some of the settings pages to avoid stuff getting cut off with the smaller font
author Michael Pavone <pavone@retrodev.com>
date Wed, 26 Feb 2025 23:43:58 -0800
parents 32ce6c588bc9
children c5c9498ff279
line wrap: on
line diff
--- a/nuklear_ui/blastem_nuklear.c	Wed Feb 26 23:19:20 2025 -0800
+++ b/nuklear_ui/blastem_nuklear.c	Wed Feb 26 23:43:58 2025 -0800
@@ -2182,7 +2182,7 @@
 		desired_width = width;
 	}
 	if (nk_begin(context, "Video Settings", nk_rect(0, 0, width, height), 0)) {
-		nk_layout_row_static(context, context->style.font->height, desired_width, 2);
+		nk_layout_row_static(context, context->style.font->height * 1.25f, desired_width, 2);
 		settings_toggle(context, "Fullscreen", "video\0fullscreen\0", 0);
 		settings_toggle(context, "Open GL", "video\0gl\0", 1);
 		settings_toggle(context, "Scanlines", "video\0scanlines\0", 0);
@@ -2256,7 +2256,7 @@
 		desired_width = width;
 	}
 	if (nk_begin(context, "Audio Settings", nk_rect(0, 0, width, height), 0)) {
-		nk_layout_row_static(context, context->style.font->height , desired_width, 2);
+		nk_layout_row_static(context, context->style.font->height * 1.25f, desired_width, 2);
 		selected_rate = settings_dropdown(context, "Rate in Hz", rates, num_rates, selected_rate, "audio\0rate\0");
 		selected_size = settings_dropdown(context, "Buffer Samples", sizes, num_sizes, selected_size, "audio\0buffer\0");
 		settings_int_input(context, "Lowpass Cutoff Hz", "audio\0lowpass_cutoff\0", "3390");
@@ -2437,7 +2437,7 @@
 	uint32_t height = render_height();
 	uint32_t desired_width = context->style.font->height * 10;
 	if (nk_begin(context, "System Settings", nk_rect(0, 0, width, height), 0)) {
-		nk_layout_row_static(context, context->style.font->height, desired_width, 2);
+		nk_layout_row_static(context, context->style.font->height * 1.25f, desired_width, 2);
 
 		if (show_sms) {
 			selected_model = settings_dropdown_ex(context, "Model", sms_model_opts, sms_model_names, num_sms_models, selected_model, "sms\0system\0model\0");