diff options
author | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2006-11-05 21:20:10 +0000 |
---|---|---|
committer | Thomas James Alexander Thurman <tthurman@src.gnome.org> | 2006-11-05 21:20:10 +0000 |
commit | d419955ddcdc256b4b5fca6f5ce67531d893b5dd (patch) | |
tree | ed6986c7c649e4d38b2c1fec83171c7fefa1bd40 | |
parent | af593aa5c5b4fa8072449d3f54e5d22e6df929e6 (diff) | |
download | metacity-d419955ddcdc256b4b5fca6f5ce67531d893b5dd.tar.gz |
improved rounding of rounded corners. Fixes #360542, mostly.
* src/frames.c: improved rounding of rounded corners. Fixes #360542,
mostly.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/frames.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2006-10-16 Elijah Newren <newren gmail com> + + * src/frames.c: improved rounding of rounded corners. Fixes #360542, + mostly. + 2006-10-30 Dan Mick <dan.mick@sun.com> * src/window.c: (__window_is_terminal): Fix strict focus diff --git a/src/frames.c b/src/frames.c index d5ccb6a3..0c70b01a 100644 --- a/src/frames.c +++ b/src/frames.c @@ -793,7 +793,7 @@ meta_frames_apply_shapes (MetaFrames *frames, for (i=0; i<radius; i++) { - const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)))); + const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)) + 0.5)); xrect.x = 0; xrect.y = i; xrect.width = width; @@ -810,7 +810,7 @@ meta_frames_apply_shapes (MetaFrames *frames, for (i=0; i<radius; i++) { - const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)))); + const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)) + 0.5)); xrect.x = new_window_width - width; xrect.y = i; xrect.width = width; @@ -827,7 +827,7 @@ meta_frames_apply_shapes (MetaFrames *frames, for (i=0; i<radius; i++) { - const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)))); + const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)) + 0.5)); xrect.x = 0; xrect.y = new_window_height - i; xrect.width = width; @@ -844,7 +844,7 @@ meta_frames_apply_shapes (MetaFrames *frames, for (i=0; i<radius; i++) { - const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)))); + const int width = 1 + (radius - floor(sqrt(radius*radius - (radius-i)*(radius-i)) + 0.5)); xrect.x = new_window_width - width; xrect.y = new_window_height - i; xrect.width = width; |