mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
Wayland: Fix refresh rate, exposed as mHz instead of Hz.
This commit is contained in:
parent
af5b82acf5
commit
dd5d47c4fe
@ -69,7 +69,7 @@ static void mode(void* data,
|
|||||||
|
|
||||||
mode.base.width = width;
|
mode.base.width = width;
|
||||||
mode.base.height = height;
|
mode.base.height = height;
|
||||||
mode.base.refreshRate = refresh;
|
mode.base.refreshRate = refresh / 1000;
|
||||||
mode.flags = flags;
|
mode.flags = flags;
|
||||||
|
|
||||||
if (monitor->wl.modesCount + 1 >= monitor->wl.modesSize)
|
if (monitor->wl.modesCount + 1 >= monitor->wl.modesSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user