fix preview orientation when using left or right rotation. The XRandR

2008-10-07  Jens Granseuer  <jensgr@gmx.net>

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

svn path=/trunk/; revision=9044
This commit is contained in:
Jens Granseuer 2008-10-07 16:57:20 +00:00 committed by Jens Granseuer
parent c32f08efb1
commit 8dbe5804f8
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2008-10-07 Jens Granseuer <jensgr@gmx.net>
* xrandr-capplet.c: (paint_output): fix preview orientation when using
left or right rotation. The XRandR coordinate system is rotated
counter-clockwise (bug #555241)
2008-09-26 Jens Granseuer <jensgr@gmx.net>
Patch by: Matt Keenan <matt.keenan@sun.com>

View file

@ -1406,7 +1406,7 @@ paint_output (App *app, cairo_t *cr, int i)
}
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 @@ paint_output (App *app, cairo_t *cr, int i)
}
else if (output->rotation & GNOME_RR_ROTATION_270)
{
angle = 1.5 * G_PI;
angle = G_PI / 2;
}
else
{