[mutter] MetaWindowActor: Corner paths needs to be made in clockwise order
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaWindowActor: Corner paths needs to be made in clockwise order
- Date: Tue, 30 Aug 2011 15:05:13 +0000 (UTC)
commit 622583a0d5499d714ef8e3aa908554f8fb3c8957
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Aug 29 21:25:05 2011 -0400
MetaWindowActor: Corner paths needs to be made in clockwise order
https://bugzilla.gnome.org/show_bug.cgi?id=657661
src/compositor/meta-window-actor.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index e952eda..2b979ba 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -2122,30 +2122,30 @@ update_corners (MetaWindowActor *self,
top_right,
0, M_PI*2);
- /* bottom left */
- x = borders->invisible.left;
- y = borders->invisible.top + outer.height - bottom_left;
+ /* bottom right */
+ x = borders->invisible.left + outer.width - bottom_right;
+ y = borders->invisible.top + outer.height - bottom_right;
set_integral_bounding_rect (&corner_rects[2],
- x, y, bottom_left, bottom_left);
+ x, y, bottom_right, bottom_right);
cairo_arc (cr,
- x + bottom_left,
+ x,
y,
- bottom_left,
+ bottom_right,
0, M_PI*2);
- /* bottom right */
- x = borders->invisible.left + outer.width - bottom_right;
- y = borders->invisible.top + outer.height - bottom_right;
+ /* bottom left */
+ x = borders->invisible.left;
+ y = borders->invisible.top + outer.height - bottom_left;
set_integral_bounding_rect (&corner_rects[3],
- x, y, bottom_right, bottom_right);
+ x, y, bottom_left, bottom_left);
cairo_arc (cr,
- x,
+ x + bottom_left,
y,
- bottom_right,
+ bottom_left,
0, M_PI*2);
corner_path = cairo_copy_path (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]