mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 15:45:54 +00:00
logical-monitor: Make scale a float
To support fractional scaling, the logical monitor scale must be stored as a float. No other functional changes is part of this commit. https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
@@ -205,7 +205,7 @@ send_output_events (struct wl_resource *resource,
|
||||
{
|
||||
int scale;
|
||||
|
||||
scale = meta_logical_monitor_get_scale (logical_monitor);
|
||||
scale = (int) meta_logical_monitor_get_scale (logical_monitor);
|
||||
if (need_all_events ||
|
||||
old_scale != scale)
|
||||
{
|
||||
@@ -273,7 +273,7 @@ meta_wayland_output_set_logical_monitor (MetaWaylandOutput *wayland_output,
|
||||
|
||||
if (current_mode == preferred_mode)
|
||||
wayland_output->mode_flags |= WL_OUTPUT_MODE_PREFERRED;
|
||||
wayland_output->scale = meta_logical_monitor_get_scale (logical_monitor);
|
||||
wayland_output->scale = (int) meta_logical_monitor_get_scale (logical_monitor);
|
||||
wayland_output->refresh_rate = meta_monitor_mode_get_refresh_rate (current_mode);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user