I have a Windows PC with an unusual 8k monochrome display attached. Windows is driving it at 2560x4320px (the RGB subpixels are full monochrome pixels). Everything is set up with manual timings in the NVIDIA Control Panel.
glfwGetVideoMode reports the correct, current mode of 2560x4320. But glfwGetVideoModes does not list this mode as one of the available options.
I tried following the “windowed full screen” example here: GLFW: Window guide
But it doesn’t use the correct mode (it uses 3840x2160px).
Any ideas or pointers on how I can create a full screen window with the proper resolution?
Here are some screenshots showing the NVIDIA control panel, the modes listed by GLFW, and the modes listed by Windows (nevermind I can only attach one image because I’m a new user):
And here is my relevant code:
monitor = glfw.get_monitors() mode = glfw.get_video_mode(monitor) print(mode) glfw.window_hint(glfw.RED_BITS, mode.bits.red) glfw.window_hint(glfw.GREEN_BITS, mode.bits.green) glfw.window_hint(glfw.BLUE_BITS, mode.bits.blue) glfw.window_hint(glfw.REFRESH_RATE, mode.refresh_rate) glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3) glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3) glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE) glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, 1) window = glfw.create_window(mode.size.width, mode.size.height, "Title", monitor, None)