xschem() tcl extension function (scheduler.c) command lookup made much faster by ordering command strings
This commit is contained in:
parent
d4c289aded
commit
e6d522bf69
|
|
@ -284,14 +284,7 @@ void resetwin(int create_pixmap, int clear_pixmap, int force)
|
|||
reset_cairo(create_pixmap, clear_pixmap);
|
||||
}
|
||||
#else
|
||||
HWND hwnd;
|
||||
if (force) {
|
||||
hwnd = Tk_GetHWND(pre_window);
|
||||
}
|
||||
else {
|
||||
Tk_Window mainwindow = Tk_MainWindow(interp);
|
||||
hwnd = Tk_GetHWND(Tk_WindowId(mainwindow));
|
||||
}
|
||||
HWND hwnd = Tk_GetHWND(xctx->window);
|
||||
RECT rct;
|
||||
if (GetWindowRect(hwnd, &rct))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1777,7 +1777,7 @@ int XSetClipRectangles(register Display* dpy, GC gc, int clip_x_origin, int clip
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
int XSetTile(Display* display, GC gc, Pixmap save_pixmap)
|
||||
int XSetTile(Display* display, GC gc, Pixmap s_pixmap)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
4466
src/scheduler.c
4466
src/scheduler.c
File diff suppressed because it is too large
Load Diff
|
|
@ -95,7 +95,7 @@
|
|||
#define MOUSE_WHEEL_UP 38
|
||||
extern int XSetClipRectangles(register Display* dpy, GC gc, int clip_x_origin,
|
||||
int clip_y_origin, XRectangle* rectangles, int n, int ordering);
|
||||
extern int XSetTile(Display* display, GC gctiled, Pixmap save_pixmap);
|
||||
extern int XSetTile(Display* display, GC gctiled, Pixmap s_pixmap);
|
||||
extern void change_to_unix_fn(char* fn);
|
||||
extern char win_temp_dir[PATH_MAX];
|
||||
#define xfseek _fseeki64
|
||||
|
|
|
|||
|
|
@ -3174,9 +3174,6 @@ proc test1 {} {
|
|||
bind .drw <Enter> {+ new_window switch 0}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
proc set_bindings {window_path} {
|
||||
global env no_x
|
||||
###
|
||||
|
|
|
|||
Loading…
Reference in New Issue