[metacity/wip/gtk-theme: 27/52] frames: Fix the visible region when we have a rounded bottom-right corner



commit f7e8a7ddaf06857c3e633b3ba360d09e207c1e09
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 806a86d..f36ff28 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -981,7 +981,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]