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



commit 0b4cc14aa6bfb6eb425158a649bb9b57fa996a62
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 ccf77d8..8257504 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1003,7 +1003,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]