mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Made glfwGetVideoMode consistent with getters.
This commit is contained in:
+3
-3
@@ -127,9 +127,9 @@ int main(int argc, char** argv)
|
||||
|
||||
if (monitor)
|
||||
{
|
||||
GLFWvidmode mode = glfwGetVideoMode(monitor);
|
||||
width = mode.width;
|
||||
height = mode.height;
|
||||
const GLFWvidmode* mode = glfwGetVideoMode(monitor);
|
||||
width = mode->width;
|
||||
height = mode->height;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user