forked from pyrite-dev/milsko
fix corner
This commit is contained in:
parent
0788297ed3
commit
65f907a65f
1 changed files with 6 additions and 5 deletions
|
|
@ -1746,12 +1746,13 @@ static void clip(MwLL handle) {
|
||||||
for(i = arrlen(ws) - 2; i >= 0; i--) {
|
for(i = arrlen(ws) - 2; i >= 0; i--) {
|
||||||
x += ws[i]->wayland.x;
|
x += ws[i]->wayland.x;
|
||||||
y += ws[i]->wayland.y;
|
y += ws[i]->wayland.y;
|
||||||
cx = cx - ws[i]->wayland.x;
|
w = MIN(ws[i]->wayland.ww - x, w);
|
||||||
cy = cy - ws[i]->wayland.y;
|
h = MIN(ws[i]->wayland.wh - y, h);
|
||||||
w = MIN(x + ws[i]->wayland.ww, w);
|
|
||||||
h = MIN(y + ws[i]->wayland.wh, h);
|
|
||||||
}
|
}
|
||||||
cx = MAX(cx, 0);
|
cx = -x;
|
||||||
|
cy = -y;
|
||||||
|
|
||||||
|
cx = MAX(cx, 0);
|
||||||
cy = MAX(cy, 0);
|
cy = MAX(cy, 0);
|
||||||
|
|
||||||
arrfree(ws);
|
arrfree(ws);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue