forked from pyrite-dev/milsko
seems to work
This commit is contained in:
parent
ca7e50d911
commit
a249b3264d
2 changed files with 5 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ int main() {
|
|||
// MwNpixmap, px,
|
||||
// NULL);
|
||||
MwViewportSetSize(vp, 1024, 1024);
|
||||
MwCreateWidget(MwButtonClass, "btn", MwViewportGetViewport(vp), -64, 256, 128, 128);
|
||||
MwCreateWidget(MwButtonClass, "btn", MwViewportGetViewport(vp), 256, 256, 128, 128);
|
||||
|
||||
MwAddUserHandler(w, MwNresizeHandler, resize, NULL);
|
||||
|
||||
|
|
|
|||
|
|
@ -1747,8 +1747,10 @@ static void clip(MwLL handle) {
|
|||
x += ws[i]->wayland.x;
|
||||
y += ws[i]->wayland.y;
|
||||
|
||||
cx = MAX(cx, ws[i]->wayland.x);
|
||||
cy = MAX(cy, ws[i]->wayland.x);
|
||||
if(i > 0){
|
||||
cx = MAX(cx, ws[i]->wayland.x);
|
||||
cy = MAX(cy, ws[i]->wayland.y);
|
||||
}
|
||||
mx = MIN(mx, x + ws[i]->wayland.ww);
|
||||
my = MIN(my, y + ws[i]->wayland.wh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue