mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05: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++)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user