make treeview faster too
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-27 05:12:40 +09:00
commit b6e21d8478
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 14 additions and 14 deletions

View file

@ -272,7 +272,7 @@ static void resize(MwWidget handle, int no_resize) {
if(lb->vscroll == NULL) {
lb->vscroll = MwVaCreateWidget(MwScrollBarClass, "vscroll", handle, w - 16, 0, 16, h, NULL);
MwAddUserHandler(lb->vscroll, MwNchangedHandler, vscroll_changed, NULL);
} else if(!no_resize){
} else if(!no_resize) {
MwVaApply(lb->vscroll,
MwNx, w - 16,
MwNy, 0,
@ -299,7 +299,7 @@ static void resize(MwWidget handle, int no_resize) {
MwAddUserHandler(lb->frame, MwNmouseDownHandler, frame_mouse_down, NULL);
MwAddUserHandler(lb->frame, MwNmouseUpHandler, frame_mouse_up, NULL);
MwAddUserHandler(lb->frame, MwNmouseMoveHandler, frame_mouse_move, NULL);
} else if(!no_resize){
} else if(!no_resize) {
MwVaApply(lb->frame,
MwNx, 0,
MwNy, y,