query the monitor's resolution instead of forcing 1024x768
This commit is contained in:
@@ -29,6 +29,9 @@ GLFWView::GLFWView(bool fullscreen_, bool benchmark_)
|
||||
GLFWmonitor *monitor = nullptr;
|
||||
if (fullscreen) {
|
||||
monitor = glfwGetPrimaryMonitor();
|
||||
auto videoMode = glfwGetVideoMode(monitor);
|
||||
width = videoMode->width;
|
||||
height = videoMode->height;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user