MetaMonitorConfig: Rename is_underscanning to enable_underscanning
Use better terminology to imply that the configuration enables underscanning, not what already "is". https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
parent
68a6cc5976
commit
0548c9e7d5
@ -181,7 +181,7 @@ assign_monitor_crtc (MetaMonitor *monitor,
|
||||
.output = output,
|
||||
.is_primary = assign_output_as_primary,
|
||||
.is_presentation = assign_output_as_presentation,
|
||||
.is_underscanning = data->monitor_config->is_underscanning
|
||||
.is_underscanning = data->monitor_config->enable_underscanning
|
||||
};
|
||||
|
||||
g_ptr_array_add (data->crtc_infos, crtc_info);
|
||||
@ -454,7 +454,7 @@ create_monitor_config (MetaMonitor *monitor,
|
||||
*monitor_config = (MetaMonitorConfig) {
|
||||
.monitor_spec = meta_monitor_spec_clone (monitor_spec),
|
||||
.mode_spec = g_memdup (mode_spec, sizeof (MetaMonitorModeSpec)),
|
||||
.is_underscanning = meta_monitor_is_underscanning (monitor)
|
||||
.enable_underscanning = meta_monitor_is_underscanning (monitor)
|
||||
};
|
||||
|
||||
return monitor_config;
|
||||
|
@ -33,7 +33,7 @@ typedef struct _MetaMonitorConfig
|
||||
{
|
||||
MetaMonitorSpec *monitor_spec;
|
||||
MetaMonitorModeSpec *mode_spec;
|
||||
gboolean is_underscanning;
|
||||
gboolean enable_underscanning;
|
||||
} MetaMonitorConfig;
|
||||
|
||||
typedef struct _MetaLogicalMonitorConfig
|
||||
|
@ -761,7 +761,7 @@ handle_text (GMarkupParseContext *context,
|
||||
case STATE_MONITOR_UNDERSCANNING:
|
||||
{
|
||||
read_bool (text, text_len,
|
||||
&parser->current_monitor_config->is_underscanning,
|
||||
&parser->current_monitor_config->enable_underscanning,
|
||||
error);
|
||||
return;
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ check_monitor_configuration (MetaMonitorConfigStore *config_store,
|
||||
g_assert_cmpfloat (monitor_config->mode_spec->refresh_rate,
|
||||
==,
|
||||
test_monitor->mode.refresh_rate);
|
||||
g_assert_cmpint (monitor_config->is_underscanning,
|
||||
g_assert_cmpint (monitor_config->enable_underscanning,
|
||||
==,
|
||||
test_monitor->is_underscanning);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user