tests: Add tests for monitor_calculate_mode_scale

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2653>
This commit is contained in:
Adrian Vovk
2023-01-30 14:34:21 -05:00
committed by Jonas Ådahl
parent 2f1dd049bf
commit a6217c720e
4 changed files with 229 additions and 47 deletions

View File

@ -727,7 +727,7 @@ meta_create_monitor_test_setup (MetaBackend *backend,
}
scale = setup->outputs[i].scale;
if (scale < 1)
if (scale < 1 && scale != -1)
scale = 1;
is_laptop_panel = setup->outputs[i].is_laptop_panel;