[metacity/wip/invisible-borders: 9/25] 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/invisible-borders: 9/25] frames: Fix the visible region when we have a rounded bottom-right corner
- Date: Tue, 20 Jan 2015 13:13:18 +0000 (UTC)
commit 207c0b692493bdc54e3a893be2e341249e432f08
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]