optimization in preview function: no un-needed redraw of current schematic; no window title change when previewing xschem files
This commit is contained in:
parent
b626dfb599
commit
f0f1f9c2f0
|
|
@ -1037,7 +1037,7 @@ void load_schematic(int load_symbols, const char *filename, int reset_undo) /* 2
|
|||
my_strncpy(xctx->current_name, name, S(xctx->current_name));
|
||||
}
|
||||
if(has_x) { /* 20161207 moved after if( (fd=..)) */
|
||||
if(strcmp(get_cell(xctx->sch[xctx->currsch],1), "systemlib/font")) {
|
||||
if(reset_undo) {
|
||||
tcleval( "wm title . \"xschem - [file tail [xschem get schname]]\""); /* 20150417 set window and icon title */
|
||||
tcleval( "wm iconname . \"xschem - [file tail [xschem get schname]]\"");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -465,9 +465,9 @@ const char *get_tok_value(const char *s,const char *tok, int with_quotes)
|
|||
static char *token=NULL;
|
||||
int size=0;
|
||||
int sizetok=0;
|
||||
register int c, state=XBEGIN, space;
|
||||
register int c, space;
|
||||
register int token_pos=0, value_pos=0;
|
||||
int quote=0;
|
||||
int quote=0, state=XBEGIN;
|
||||
int escape=0;
|
||||
int cmp = 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
|
|||
window = save_window;
|
||||
resetwin();
|
||||
change_linewidth(-1.);
|
||||
draw();
|
||||
/* draw(); */ /* not needed: event loop takes care of this. */
|
||||
event_reporting = save_ev;
|
||||
}
|
||||
else if(!strcmp(what, "destroy")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue