man
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-23 23:27:44 +09:00
commit 85c5409790
2 changed files with 6 additions and 5 deletions

View file

@ -35,7 +35,9 @@ int main() {
// MwNpixmap, px,
// NULL);
MwViewportSetSize(vp, 1024, 1024);
MwCreateWidget(MwButtonClass, "btn", MwViewportGetViewport(vp), 256, 256, 128, 128);
MwWidget f = MwCreateWidget(MwFrameClass, "fr", MwViewportGetViewport(vp), 256, 256, 128, 128);
f = MwCreateWidget(MwFrameClass, "fr", f, 0, 0, 128, 128);
MwCreateWidget(MwButtonClass, "btn", f, 64, 64, 128, 128);
MwAddUserHandler(w, MwNresizeHandler, resize, NULL);

View file

@ -1747,10 +1747,9 @@ static void clip(MwLL handle) {
x += ws[i]->wayland.x;
y += ws[i]->wayland.y;
if(i > 0){
cx = MAX(cx, ws[i]->wayland.x);
cy = MAX(cy, ws[i]->wayland.y);
}
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);
}