mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Added refresh rate to GLFWvidmode.
This commit is contained in:
+3
-2
@@ -52,10 +52,11 @@ static const char* format_mode(const GLFWvidmode* mode)
|
||||
static char buffer[512];
|
||||
|
||||
sprintf(buffer,
|
||||
"%i x %i x %i (%i %i %i)",
|
||||
"%i x %i x %i (%i %i %i) %i Hz",
|
||||
mode->width, mode->height,
|
||||
mode->redBits + mode->greenBits + mode->blueBits,
|
||||
mode->redBits, mode->greenBits, mode->blueBits);
|
||||
mode->redBits, mode->greenBits, mode->blueBits,
|
||||
mode->refreshRate);
|
||||
|
||||
buffer[sizeof(buffer) - 1] = '\0';
|
||||
return buffer;
|
||||
|
||||
Reference in New Issue
Block a user