resetwin(1,1,1) instead of resetwin(1,1,0) in preview_window so save_pixmap is reset to correct size when switching back to main window
This commit is contained in:
parent
1268a6faae
commit
29d8b0c3a8
|
|
@ -891,7 +891,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
||||||
preview_xctx->window = pre_window;
|
preview_xctx->window = pre_window;
|
||||||
resetwin(1, 0, 1); /* create preview pixmap. resetwin(create_pixmap, clear_pixmap, force) */
|
resetwin(1, 0, 1); /* create preview pixmap. resetwin(create_pixmap, clear_pixmap, force) */
|
||||||
}
|
}
|
||||||
resetwin(1, 1, 0); /* handle resize. resetwin(create_pixmap, clear_pixmap, force) */
|
resetwin(1, 1, 1); /* handle resize. resetwin(create_pixmap, clear_pixmap, force) */
|
||||||
zoom_full(1, 0); /* draw */
|
zoom_full(1, 0); /* draw */
|
||||||
xctx = save_xctx;
|
xctx = save_xctx;
|
||||||
}
|
}
|
||||||
|
|
@ -906,7 +906,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
||||||
my_free(1144, ¤t_file);
|
my_free(1144, ¤t_file);
|
||||||
xctx = save_xctx; /* restore schematic */
|
xctx = save_xctx; /* restore schematic */
|
||||||
save_xctx = NULL;
|
save_xctx = NULL;
|
||||||
XSetTile(display,gctiled, xctx->save_pixmap);
|
resetwin(1, 1, 1); /* handle resize. resetwin(create_pixmap, clear_pixmap, force) */
|
||||||
set_modify(xctx->modified);
|
set_modify(xctx->modified);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue