gnome-control-center r9045 - branches/gnome-2-24/capplets/display



Author: jensg
Date: Tue Oct  7 16:58:07 2008
New Revision: 9045
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9045&view=rev

Log:
2008-10-07  Jens Granseuer  <jensgr gmx net>

	Merged from trunk.

	* xrandr-capplet.c: (paint_output): fix preview orientation when using
	left or right rotation. The XRandR coordinate system is rotated
	counter-clockwise (bug #555241)


Modified:
   branches/gnome-2-24/capplets/display/ChangeLog
   branches/gnome-2-24/capplets/display/xrandr-capplet.c

Modified: branches/gnome-2-24/capplets/display/xrandr-capplet.c
==============================================================================
--- branches/gnome-2-24/capplets/display/xrandr-capplet.c	(original)
+++ branches/gnome-2-24/capplets/display/xrandr-capplet.c	Tue Oct  7 16:58:07 2008
@@ -1406,7 +1406,7 @@
     }
     else if (output->rotation & GNOME_RR_ROTATION_90)
     {
-	angle = G_PI / 2;
+	angle = 1.5 * G_PI;
     }
     else if (output->rotation & GNOME_RR_ROTATION_180)
     {
@@ -1414,7 +1414,7 @@
     }
     else if (output->rotation & GNOME_RR_ROTATION_270)
     {
-	angle = 1.5 * G_PI;
+	angle = G_PI / 2;
     }
     else
     {



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