mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0032232: Draw Harness - make Tk dependency optional
This commit is contained in:
@@ -202,13 +202,8 @@ void IVtkDraw_Interactor::Enable()
|
||||
SetWindowLongPtr(this->myWindowId, GWLP_USERDATA, (LONG_PTR)this);
|
||||
SetWindowLongPtr(this->myWindowId, GWLP_WNDPROC, (LONG_PTR)WndProc);
|
||||
#else
|
||||
#if TCL_MAJOR_VERSION < 8
|
||||
Tk_CreateFileHandler((void*)ConnectionNumber(this->myDisplayId),
|
||||
TK_READABLE, ProcessEvents, (ClientData) this);
|
||||
#else
|
||||
Tk_CreateFileHandler(ConnectionNumber(this->myDisplayId),
|
||||
TK_READABLE, ProcessEvents, (ClientData) this);
|
||||
#endif
|
||||
Tcl_CreateFileHandler (ConnectionNumber(this->myDisplayId),
|
||||
TCL_READABLE, ProcessEvents, (ClientData) this);
|
||||
#endif
|
||||
|
||||
this->Enabled = 1;
|
||||
|
Reference in New Issue
Block a user