Fix Wayland refresh rate logging.

This commit is contained in:
Hans-Kristian Arntzen 2016-07-06 23:22:13 +02:00
parent d2fafc5451
commit 471d06d133

View File

@ -177,8 +177,10 @@ static void display_handle_mode(void *data,
wl->width = width; wl->width = width;
wl->height = height; wl->height = height;
RARCH_LOG("[Wayland]: Video mode: %d x %d @ %d Hz.\n", /* Certain older Wayland implementations report in Hz,
width, height, refresh); * but it should be mHz. */
RARCH_LOG("[Wayland]: Video mode: %d x %d @ %.4f Hz.\n",
width, height, refresh > 1000 ? refresh / 1000.0 : (double)refresh);
} }
static void display_handle_done(void *data, static void display_handle_done(void *data,