chore: reduce debt with const values

This commit is contained in:
2025-11-10 16:29:11 +01:00
parent 1c737f4ac6
commit 5532cbf53e
20 changed files with 123 additions and 104 deletions
+4 -4
View File
@@ -44,7 +44,7 @@ static GLFWmonitor *get_monitor(unsigned char monitor_index) {
}
static GLFWwindow *
create_window(GLFWmonitor *monitor, char *title, Window *shared_context,
create_window(GLFWmonitor *monitor, const char *title, Window *shared_context,
void (*key_callback)(Window *, int, int, int, int)) {
GLFWwindow *window;
@@ -92,8 +92,8 @@ void window_terminate() {
glfwTerminate();
}
Window *window_init(char *title, unsigned char monitor_index, bool windowed,
Window *shared_context,
Window *window_init(const char *title, unsigned char monitor_index,
bool windowed, Window *shared_context,
void (*key_callback)(Window *, int, int, int, int)) {
GLFWwindow *window;
GLFWmonitor *monitor;
@@ -107,7 +107,7 @@ Window *window_init(char *title, unsigned char monitor_index, bool windowed,
return window;
}
void window_update_title(Window *window, char *title) {
void window_update_title(Window *window, const char *title) {
glfwSetWindowTitle(window, title);
}