1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Fix Wayland refresh rate exposed as mHz

Closes #621.
This commit is contained in:
Emmanuel Gil Peyrot 2015-10-24 00:52:10 +01:00 committed by Camilla Berglund
parent 0ebe8ce4c5
commit 0fda5b7b80

View File

@ -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)