]> Creatis software - crea.git/blobdiff - src/creawxVTKRenderWindowInteractor.cxx
#3169 crea Feature New Normal - branch vtk7itk4wx3-mxecc
[crea.git] / src / creawxVTKRenderWindowInteractor.cxx
index a614f24a7054af42821706c89a1d887312c84448..d3156a44f060c4b0477f94605c67e9e3aebbfb1e 100644 (file)
@@ -461,13 +461,15 @@ void wxVTKRenderWindowInteractor::OnTimer(wxTimerEvent& WXUNUSED(event))
 long wxVTKRenderWindowInteractor::GetHandleHack()
 {
   //helper function to hide the MSW vs GTK stuff
-  long handle_tmp = 0;
+  long int handle_tmp = 0;
 
 // __WXMSW__ is for Win32
 // __WXMAC__ is for Carbon or Cocoa builds
 // __WXGTK__ is for both gtk 1.2.x and gtk 2.x
 #if defined(__WXMSW__) || defined(__WXMAC__)
-    handle_tmp = (long)this->GetHandle();
+// EED 2018-01-17
+//    handle_tmp = (long)this->GetHandle();
+    handle_tmp = (long long)this->GetHandle();
 #endif //__WXMSW__
 
 // using above GetHandle() works fine with wxOSX 2.9.x
@@ -502,9 +504,10 @@ void wxVTKRenderWindowInteractor::OnPaint(wxPaintEvent& WXUNUSED(event))
 
   //do it here rather than in the cstor: this is safer.
   if(!Handle)
-  {
     Handle = GetHandleHack();
+  {
     RenderWindow->SetWindowId(reinterpret_cast<void *>(Handle));
+
 // Cocoa
 // this->GetNSView() <-> DisplayId
 // this->GetTopLevel()->GetNSWindow() <-> WindowId