mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Merge pull request #16 from belkiss/master
Replaced snprintf with sprintf due to MSVC.
This commit is contained in:
commit
c8c36f6ec0
|
@ -46,7 +46,7 @@ static void set_swap_interval(GLFWwindow window, int interval)
|
||||||
swap_interval = interval;
|
swap_interval = interval;
|
||||||
glfwSwapInterval(swap_interval);
|
glfwSwapInterval(swap_interval);
|
||||||
|
|
||||||
snprintf(title, sizeof(title),
|
sprintf(title,
|
||||||
"Cursor Inaccuracy Detector (interval %i)",
|
"Cursor Inaccuracy Detector (interval %i)",
|
||||||
swap_interval);
|
swap_interval);
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ static const char* format_mode(GLFWvidmode* mode)
|
||||||
{
|
{
|
||||||
static char buffer[512];
|
static char buffer[512];
|
||||||
|
|
||||||
snprintf(buffer, sizeof(buffer),
|
sprintf(buffer,
|
||||||
"%i x %i x %i (%i %i %i)",
|
"%i x %i x %i (%i %i %i)",
|
||||||
mode->width, mode->height,
|
mode->width, mode->height,
|
||||||
mode->redBits + mode->greenBits + mode->blueBits,
|
mode->redBits + mode->greenBits + mode->blueBits,
|
||||||
|
|
|
@ -43,7 +43,7 @@ static void set_swap_interval(GLFWwindow window, int interval)
|
||||||
swap_interval = interval;
|
swap_interval = interval;
|
||||||
glfwSwapInterval(swap_interval);
|
glfwSwapInterval(swap_interval);
|
||||||
|
|
||||||
snprintf(title, sizeof(title),
|
sprintf(title,
|
||||||
"Tearing detector (interval %i)",
|
"Tearing detector (interval %i)",
|
||||||
swap_interval);
|
swap_interval);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user