diff src/main.c @ 39:b656ed2e8957

refactor
author Dennis C. M. <dennis@denniscm.com>
date Fri, 14 Jul 2023 20:16:29 +0100
parents 8ed1256dd518
children 62b7c457510d
line wrap: on
line diff
--- a/src/main.c	Fri Jun 30 19:25:38 2023 +0100
+++ b/src/main.c	Fri Jul 14 20:16:29 2023 +0100
@@ -165,12 +165,12 @@
 		reset_state(&algo_args, &thread_state);
 	}
 
-	// u: Increase speed
+	// u: Increase delay
 	if (key == 117) {
 		change_delay(&algo_args, 10);
 	}
 
-	// d: reduce speed
+	// d: reduce delay
 	if (key == 100) {
 		change_delay(&algo_args, -10);
 	}
@@ -197,7 +197,7 @@
 	// Set background dark
 	glClearColor(0.0, 0.0, 0.0, 1.0);
 
-	// Set point color and size to 1 pixel
+	// Set point color and size
 	glColor3f(1.0, 0.7569, 0.0);
 	glPointSize(5.0);
 
@@ -318,7 +318,7 @@
 	glutInit(&argc, argv);
 	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
 	glutInitWindowSize(window_width, window_height);
-	glutCreateWindow("Visualization of sorting algorithms | Developed by Dennis CM");
+	glutCreateWindow("Visualization of sorting algorithms");
 
 	setup_gl();
 	setup_freetype();