[mutter] config: Fix compilation errors



commit 8b98cb818c5eaf7abfd1fed9660f635e72c12f91
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Nov 5 12:30:05 2014 +0000

    config: Fix compilation errors

 src/backends/meta-monitor-config.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c
index 91c8c9f..1f0db70 100644
--- a/src/backends/meta-monitor-config.c
+++ b/src/backends/meta-monitor-config.c
@@ -1088,12 +1088,12 @@ init_config_from_preferred_mode (MetaOutputConfig *config,
   config->enabled = TRUE;
   config->rect.x = 0;
   config->rect.y = 0;
-  config->rect.width = output.preferred_mode->width;
-  config->rect.height = output.preferred_mode->height;
-  config->refresh_rate = output.preferred_mode->refresh_rate;
+  config->rect.width = output->preferred_mode->width;
+  config->rect.height = output->preferred_mode->height;
+  config->refresh_rate = output->preferred_mode->refresh_rate;
   config->transform = META_MONITOR_TRANSFORM_NORMAL;
   config->is_primary = FALSE;
-  confog->is_presentation = FALSE;
+  config->is_presentation = FALSE;
 }
 
 static MetaConfiguration *
@@ -1186,14 +1186,14 @@ make_default_config (MetaMonitorConfig *self,
   x = primary->preferred_mode->width;
   for (i = 0; i < n_outputs; i++)
     {
-      gboolean is_primary = (outputs[i] == primary);
+      gboolean is_primary = (&outputs[i] == primary);
 
       init_config_from_preferred_mode (&ret->outputs[i], &outputs[i]);
       ret->outputs[i].is_primary = is_primary;
 
       if (is_primary)
         {
-          ret->outputs[i].rect = 0;
+          ret->outputs[i].rect.x = 0;
         }
       else
         {
@@ -1234,7 +1234,7 @@ ensure_at_least_one_output (MetaMonitorConfig  *self,
 
   for (i = 0; i < n_outputs; i++)
     {
-      gboolean is_primary = (outputs[i] == primary);
+      gboolean is_primary = (&outputs[i] == primary);
 
       if (is_primary)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]