mirror of
https://github.com/brl/mutter.git
synced 2025-04-09 03:39:39 +00:00
frames: Fix the visible region when we have a rounded bottom-right corner
https://bugzilla.gnome.org/show_bug.cgi?id=657661
This commit is contained in:
parent
622583a0d5
commit
0b4cc14aa6
@ -1003,7 +1003,7 @@ get_visible_region (MetaFrames *frames,
|
|||||||
for (i=0; i<corner; i++)
|
for (i=0; i<corner; i++)
|
||||||
{
|
{
|
||||||
const int width = floor(0.5 + radius - sqrt(radius*radius - (radius-(i+0.5))*(radius-(i+0.5))));
|
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.y = frame_rect.y + frame_rect.height - i - 1;
|
||||||
rect.width = width;
|
rect.width = width;
|
||||||
rect.height = 1;
|
rect.height = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user