shithub: fc

Download patch

ref: 14cb6191583eade403091b0b6c1296eebed15267
parent: 672db14015b4c9bea798368eb5747dbdbd665da4
author: glenda <glenda@krsna>
date: Sun Aug 17 13:13:00 EDT 2025

cleanup

--- a/fc.c
+++ b/fc.c
@@ -808,7 +808,6 @@
 void
 validate_config(void)
 {
-	/* Display dimensions */
 	if(config.banner_height < 0) config.banner_height = 0;
 	if(config.banner_height > 100) config.banner_height = 100;
 	
@@ -818,7 +817,6 @@
 	if(config.status_margin < 0) config.status_margin = 0;
 	if(config.status_margin > 50) config.status_margin = 50;
 	
-	/* Box layout */
 	if(config.box_label_offset_y < 0) config.box_label_offset_y = 0;
 	if(config.box_label_offset_y > 50) config.box_label_offset_y = 50;
 	
@@ -828,7 +826,6 @@
 	if(config.formula_indicator_offset < 0) config.formula_indicator_offset = 0;
 	if(config.formula_indicator_offset > 30) config.formula_indicator_offset = 30;
 	
-	/* Dialog dimensions */
 	if(config.dialog_width < 100) config.dialog_width = 100;
 	if(config.dialog_width > 800) config.dialog_width = 800;
 	
@@ -838,7 +835,6 @@
 	if(config.dialog_padding < 0) config.dialog_padding = 0;
 	if(config.dialog_padding > 50) config.dialog_padding = 50;
 	
-	/* Paragraph box dimensions */
 	if(config.paragraph_width < 64) config.paragraph_width = 64;
 	if(config.paragraph_width > 512) config.paragraph_width = 512;
 	
@@ -845,11 +841,9 @@
 	if(config.paragraph_height < 32) config.paragraph_height = 32;
 	if(config.paragraph_height > 512) config.paragraph_height = 512;
 	
-	/* Grid settings */
 	if(config.gridsize < 8) config.gridsize = 8;
 	if(config.gridsize > 256) config.gridsize = 256;
 	
-	/* Emoji settings */
 	if(config.emoji_speed < 1) config.emoji_speed = 1;
 	if(config.emoji_speed > 20) config.emoji_speed = 20;
 	
@@ -856,7 +850,6 @@
 	if(config.emoji_frame_delay < 1) config.emoji_frame_delay = 1;
 	if(config.emoji_frame_delay > 100) config.emoji_frame_delay = 100;
 	
-	/* Timing intervals */
 	if(config.ctl_check_interval < 10) config.ctl_check_interval = 10;
 	if(config.ctl_check_interval > 1000) config.ctl_check_interval = 1000;
 	
@@ -863,7 +856,6 @@
 	if(config.redraw_interval < 10) config.redraw_interval = 10;
 	if(config.redraw_interval > 1000) config.redraw_interval = 1000;
 	
-	/* Formula settings */
 	if(config.formula_precision < 0) config.formula_precision = 0;
 	if(config.formula_precision > 10) config.formula_precision = 10;
 	
@@ -873,13 +865,11 @@
 	if(config.max_recalc_passes < 1) config.max_recalc_passes = 1;
 	if(config.max_recalc_passes > 100) config.max_recalc_passes = 100;
 	
-	/* File paths */
 	if(config.ctl_file[0] == '\0')
 		strcpy(config.ctl_file, DEFAULT_CTL_FILE);
 	if(config.default_save_path[0] == '\0')
 		strcpy(config.default_save_path, DEFAULT_SAVE_PATH);
 	
-	/* Boolean values (ensure they're 0 or 1) */
 	config.emoji_enabled = config.emoji_enabled ? 1 : 0;
 	config.gridsnap = config.gridsnap ? 1 : 0;
 	config.show_formula_indicator = config.show_formula_indicator ? 1 : 0;
--