forked from pyrite-dev/milsko
fix someday
This commit is contained in:
parent
76a82c821e
commit
8870b3a0c5
1 changed files with 4 additions and 6 deletions
|
|
@ -1746,14 +1746,12 @@ 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;
|
||||||
w = MIN(ws[i]->wayland.ww - ws[i]->wayland.x, w);
|
w = MIN(ws[i]->wayland.ww - MAX(-x, 0), w);
|
||||||
h = MIN(ws[i]->wayland.wh - ws[i]->wayland.y, h);
|
h = MIN(ws[i]->wayland.wh - MAX(-y, 0), h);
|
||||||
}
|
}
|
||||||
cx = -x;
|
|
||||||
cy = -y;
|
|
||||||
|
|
||||||
cx = MAX(cx, 0);
|
cx = MAX(-x, 0);
|
||||||
cy = MAX(cy, 0);
|
cy = MAX(-y, 0);
|
||||||
|
|
||||||
arrfree(ws);
|
arrfree(ws);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue