mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 11:26:18 -04:00
fix bad resolutions being picked in windowed mode (#1513)
fix bad resolutions being picked in windowed
This commit is contained in:
parent
69a3007e9b
commit
8d8c6ccf39
|
@ -412,6 +412,7 @@ GfxDisplayMode GLDisplay::get_fullscreen() {
|
|||
void GLDisplay::get_screen_size(int vmode_idx, s32* w_out, s32* h_out, s32* count_out) {
|
||||
int count = 0;
|
||||
auto vmode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
||||
if (get_fullscreen() == GfxDisplayMode::Fullscreen) {
|
||||
auto vmodes = glfwGetVideoModes(glfwGetPrimaryMonitor(), &count);
|
||||
if (vmode_idx >= 0) {
|
||||
vmode = &vmodes[vmode_idx];
|
||||
|
@ -422,6 +423,7 @@ void GLDisplay::get_screen_size(int vmode_idx, s32* w_out, s32* h_out, s32* coun
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count_out) {
|
||||
*count_out = count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue