[metacity] frames: Fix the visible region when we have a rounded bottom-right corner



commit bcd07b139184fc2f74ed1289c0cea170e8214728
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Aug 29 21:32:47 2011 -0400

    frames: Fix the visible region when we have a rounded bottom-right corner
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657661

 src/ui/frames.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index e80781b..5e90a03 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -964,7 +964,7 @@ get_visible_region (MetaFrames        *frames,
       for (i=0; i<corner; i++)
         {
           const int width = floor(0.5 + radius - sqrt(radius*radius - (radius-(i+0.5))*(radius-(i+0.5))));
-          rect.x = frame_rect.x + frame_rect.width + width;
+          rect.x = frame_rect.x + frame_rect.width - width;
           rect.y = frame_rect.y + frame_rect.height - i - 1;
           rect.width = width;
           rect.height = 1;


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