diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2017-06-10 10:10:57 -0400 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-07-22 13:14:01 +0200 |
commit | 67eb60c19a93d8399a691e3788b4c00279825d94 (patch) | |
tree | 94e83d6fc0db39897bb22bd69a7c0cf8f24f0033 /src/tests | |
parent | d561d300b62e413caaaaea12c82bad60b288dbcc (diff) | |
download | mutter-67eb60c19a93d8399a691e3788b4c00279825d94.tar.gz |
monitor-manager: Pass the Logical mode when computing the monitor scale
In order to compute proper default scaling value we need to know if the
fractional scaling is enabled or not and thus if we're using a logical
mode or not.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/336>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/meta-monitor-manager-test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tests/meta-monitor-manager-test.c b/src/tests/meta-monitor-manager-test.c index e3b4f46cf..efff2361c 100644 --- a/src/tests/meta-monitor-manager-test.c +++ b/src/tests/meta-monitor-manager-test.c @@ -291,9 +291,10 @@ meta_monitor_manager_test_is_transform_handled (MetaMonitorManager *manager, } static float -meta_monitor_manager_test_calculate_monitor_mode_scale (MetaMonitorManager *manager, - MetaMonitor *monitor, - MetaMonitorMode *monitor_mode) +meta_monitor_manager_test_calculate_monitor_mode_scale (MetaMonitorManager *manager, + MetaLogicalMonitorLayoutMode layout_mode, + MetaMonitor *monitor, + MetaMonitorMode *monitor_mode) { MetaOutput *output; MetaOutputTest *output_test; |