autoresize (erik quanstrom)
This commit is contained in:
parent
acf8398fef
commit
28a8042cec
5 changed files with 7 additions and 8 deletions
|
|
@ -36,7 +36,7 @@ eresized(int new)
|
|||
if(image == nil)
|
||||
return;
|
||||
r = rectaddpt(image->r, subpt(screen->r.min, image->r.min));
|
||||
if(!new)
|
||||
if(!new && !winsize)
|
||||
drawresizewindow(r);
|
||||
flushimage(display, 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ eresized(int new)
|
|||
if(allims==nil || allims[which]==nil)
|
||||
return;
|
||||
r = rectaddpt(allims[0]->r, subpt(screen->r.min, allims[0]->r.min));
|
||||
if(!new)
|
||||
if(!new && !winsize)
|
||||
drawresizewindow(r);
|
||||
r = rectaddpt(r, subpt(allims[which]->r.min, allims[0]->r.min));
|
||||
drawop(screen, r, allims[which], allmasks[which], allims[which]->r.min, S);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ eresized(int new)
|
|||
if(image == nil)
|
||||
return;
|
||||
r = rectaddpt(image->clipr, subpt(screen->r.min, image->clipr.min));
|
||||
if(!new)
|
||||
if(!new && !winsize)
|
||||
drawresizewindow(r);
|
||||
draw(screen, r, image, nil, image->r.min);
|
||||
flushimage(display, 1);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ eresized(int new)
|
|||
if(image == nil)
|
||||
return;
|
||||
r = rectaddpt(image->r, subpt(screen->r.min, image->r.min));
|
||||
if(!new)
|
||||
if(!new && !winsize)
|
||||
drawresizewindow(r);
|
||||
draw(screen, r, image, nil, image->r.min);
|
||||
flushimage(display, 1);
|
||||
|
|
|
|||
|
|
@ -33,10 +33,9 @@ eresized(int new)
|
|||
}
|
||||
if(image == nil)
|
||||
return;
|
||||
r = insetrect(screen->clipr, Edge+Border);
|
||||
r.max.x = r.min.x+Dx(image->r);
|
||||
r.max.y = r.min.y+Dy(image->r);
|
||||
border(screen, r, -Border, nil, ZP);
|
||||
r = rectaddpt(image->r, subpt(screen->r.min, image->r.min));
|
||||
if(!new && !winsize)
|
||||
drawresizewindow(r);
|
||||
draw(screen, r, image, nil, image->r.min);
|
||||
flushimage(display, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue