mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-03 20:38:08 +02:00
weston-info: do not round refresh rates
Weston-info was accidentally rounding refresh rates to integer Hz. Fix it to print 3 decimals, as the protocol carries exactly that. Reported-by: Michel Dänzer <michel@daenzer.net> Cc: John Galt <johngaltfirstrun@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
265aeb316b
commit
48fbb54959
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ print_output_info(void *data)
|
|||
wl_list_for_each(mode, &output->modes, link) {
|
||||
printf("\tmode:\n");
|
||||
|
||||
printf("\t\twidth: %d px, height: %d px, refresh: %.f Hz,\n",
|
||||
printf("\t\twidth: %d px, height: %d px, refresh: %.3f Hz,\n",
|
||||
mode->width, mode->height,
|
||||
(float) mode->refresh / 1000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue