mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Fix compilation with MSVC by using sprintf instead of snprintf
snprintf is part of c99 standard, not supported by MS compilers
This commit is contained in:
+3
-3
@@ -46,9 +46,9 @@ static void set_swap_interval(GLFWwindow window, int interval)
|
||||
swap_interval = interval;
|
||||
glfwSwapInterval(swap_interval);
|
||||
|
||||
snprintf(title, sizeof(title),
|
||||
"Cursor Inaccuracy Detector (interval %i)",
|
||||
swap_interval);
|
||||
sprintf(title,
|
||||
"Cursor Inaccuracy Detector (interval %i)",
|
||||
swap_interval);
|
||||
|
||||
glfwSetWindowTitle(window, title);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user