mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0032232: Draw Harness - make Tk dependency optional
This commit is contained in:
@@ -83,7 +83,6 @@
|
||||
#include <Xw_Window.hxx>
|
||||
#include <vtkXRenderWindowInteractor.h>
|
||||
#include <vtkXOpenGLRenderWindow.h>
|
||||
#include <tk.h>
|
||||
#endif
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
|
@@ -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