Commit 0fa4d114 authored by Benjamin Berg's avatar Benjamin Berg Committed by Robert Ancell
Browse files

display: Use correct mode for supported scale checking

Monitors may not always have a mode. This means we cannot look up the
mode on the fly, but instead need to have a heuristic to select a mode
if there is none.

Everything was in place already for this, except that one location was
still doing a fresh lookup, possibly causing a crash.

Fixes: #675
parent 41c28434
Pipeline #124954 passed with stages
in 4 minutes and 59 seconds
......@@ -397,7 +397,7 @@ cc_display_settings_rebuild_ui (CcDisplaySettings *self)
GtkWidget *scale_btn;
if (!cc_display_config_is_scaled_mode_valid (self->config,
cc_display_monitor_get_mode (self->selected_output),
current_mode,
*scale) &&
cc_display_monitor_get_scale (self->selected_output) != *scale)
continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment