gnome-desktop r5243 - trunk/libgnome-desktop



Author: vuntz
Date: Mon Sep 22 12:32:19 2008
New Revision: 5243
URL: http://svn.gnome.org/viewvc/gnome-desktop?rev=5243&view=rev

Log:
2008-09-22  Vincent Untz  <vuntz gnome org>

	* gnome-rr.c: (gnome_rr_crtc_set_config): fix regression introduced
	in the Sep 16 commit, that made changing resolution not working.
	Patch by Jens Granseuer <jensgr gmx net>


Modified:
   trunk/libgnome-desktop/ChangeLog
   trunk/libgnome-desktop/gnome-rr.c

Modified: trunk/libgnome-desktop/gnome-rr.c
==============================================================================
--- trunk/libgnome-desktop/gnome-rr.c	(original)
+++ trunk/libgnome-desktop/gnome-rr.c	Mon Sep 22 12:32:19 2008
@@ -931,7 +931,7 @@
 {
     ScreenInfo *info;
     GArray *output_ids;
-    gboolean result = TRUE;
+    gboolean result;
     int i;
     
     g_return_val_if_fail (crtc != NULL, FALSE);
@@ -953,16 +953,13 @@
 	    g_array_append_val (output_ids, outputs[i]->id);
     }
     
-    if (!XRRSetCrtcConfig (DISPLAY (crtc), info->resources, crtc->id,
-			   CurrentTime, 
-			   x, y,
-			   mode? mode->id : None,
-			   xrotation_from_rotation (rotation),
-			   (RROutput *)output_ids->data,
-			   output_ids->len))
-    {
-	result = FALSE;
-    }
+    result = XRRSetCrtcConfig (DISPLAY (crtc), info->resources, crtc->id,
+			       CurrentTime, 
+			       x, y,
+			       mode ? mode->id : None,
+			       xrotation_from_rotation (rotation),
+			       (RROutput *)output_ids->data,
+			       output_ids->len) == RRSetConfigSuccess;
     
     g_array_free (output_ids, TRUE);
     



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