better comment in resetwin()

This commit is contained in:
Stefan Schippers 2020-10-21 00:11:03 +02:00
parent 1ec0745b54
commit 3bb92f1e0d
1 changed files with 2 additions and 1 deletions

View File

@ -216,7 +216,8 @@ void resetwin(int create_pixmap, int clear_pixmap, int preview_window)
areaw = areax2-areax1;
areah = areay2-areay1;
/* if no preview_window or no create_pixmap avoid unnecessary work if no resize */
/* if no preview_window or create_pixmap==0 avoid unnecessary work if no resize */
/* !create_pixmap ensures the XSetTile is executed when done with the preview */
if( preview_window || !create_pixmap || xschem_w !=xrect[0].width || xschem_h !=xrect[0].height) {
dbg(1, "resetwin(): x=%d y=%d xschem_w=%d xschem_h=%d\n",
wattr.x, wattr.y, xschem_w,xschem_h);