monitor-manager: Rename MetaCRTC(Info) to MetaCrtc(Info)

Change to follow the naming convention used everywhere else. This means
changing CRTC to Crtc even though it is an abbreviation.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl
2016-12-08 12:15:28 +08:00
parent 156c478ccb
commit 1650c35e38
12 changed files with 118 additions and 118 deletions

View File

@ -77,7 +77,7 @@ meta_monitor_manager_test_read_current (MetaMonitorManager *manager)
static void
meta_monitor_manager_test_apply_configuration (MetaMonitorManager *manager,
MetaCRTCInfo **crtcs,
MetaCrtcInfo **crtcs,
unsigned int n_crtcs,
MetaOutputInfo **outputs,
unsigned int n_outputs)
@ -87,8 +87,8 @@ meta_monitor_manager_test_apply_configuration (MetaMonitorManager *manager,
for (i = 0; i < n_crtcs; i++)
{
MetaCRTCInfo *crtc_info = crtcs[i];
MetaCRTC *crtc = crtc_info->crtc;
MetaCrtcInfo *crtc_info = crtcs[i];
MetaCrtc *crtc = crtc_info->crtc;
crtc->is_dirty = TRUE;
if (crtc_info->mode == NULL)
@ -151,7 +151,7 @@ meta_monitor_manager_test_apply_configuration (MetaMonitorManager *manager,
/* Disable CRTCs not mentioned in the list */
for (i = 0; i < manager->n_crtcs; i++)
{
MetaCRTC *crtc = &manager->crtcs[i];
MetaCrtc *crtc = &manager->crtcs[i];
crtc->logical_monitor = NULL;

View File

@ -28,7 +28,7 @@ typedef struct _MetaMonitorTestSetup
int n_modes;
MetaOutput *outputs;
int n_outputs;
MetaCRTC *crtcs;
MetaCrtc *crtcs;
int n_crtcs;
} MetaMonitorTestSetup;

View File

@ -214,7 +214,7 @@ create_monitor_test_setup (MonitorTestCase *test_case)
}
test_setup->n_crtcs = test_case->setup.n_crtcs;
test_setup->crtcs = g_new0 (MetaCRTC, test_setup->n_crtcs);
test_setup->crtcs = g_new0 (MetaCrtc, test_setup->n_crtcs);
for (i = 0; i < test_setup->n_crtcs; i++)
{
int current_mode_index;
@ -226,7 +226,7 @@ create_monitor_test_setup (MonitorTestCase *test_case)
else
current_mode = &test_setup->modes[current_mode_index];
test_setup->crtcs[i] = (MetaCRTC) {
test_setup->crtcs[i] = (MetaCrtc) {
.crtc_id = i + 1,
.current_mode = current_mode,
.transform = META_MONITOR_TRANSFORM_NORMAL,
@ -239,13 +239,13 @@ create_monitor_test_setup (MonitorTestCase *test_case)
for (i = 0; i < test_setup->n_outputs; i++)
{
int crtc_index;
MetaCRTC *crtc;
MetaCrtc *crtc;
int preferred_mode_index;
MetaMonitorMode *preferred_mode;
MetaMonitorMode **modes;
int n_modes;
int j;
MetaCRTC **possible_crtcs;
MetaCrtc **possible_crtcs;
int n_possible_crtcs;
int scale;
@ -272,7 +272,7 @@ create_monitor_test_setup (MonitorTestCase *test_case)
}
n_possible_crtcs = test_case->setup.outputs[i].n_possible_crtcs;
possible_crtcs = g_new0 (MetaCRTC *, n_possible_crtcs);
possible_crtcs = g_new0 (MetaCrtc *, n_possible_crtcs);
for (j = 0; j < n_possible_crtcs; j++)
{
int possible_crtc_index;