[metacity/wip/gtk-theme: 17/41] frames: Fix the visible region when we have a rounded bottom-right corner
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/gtk-theme: 17/41] frames: Fix the visible region when we have a rounded bottom-right corner
- Date: Wed, 7 Jan 2015 12:37:32 +0000 (UTC)
commit de369d35a9c0490627be17dd7cd60dd03c89ce36
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]