summaryrefslogtreecommitdiffstats
path: root/src/vtk6-2-mingw-w64.patch
blob: 864cdd885e7329c77c049e426acec6cef66112e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
This file is part of MXE.
See index.html for further information.

This patch has been taken from:
http://vtk.org/Bug/print_bug_page.php?bug_id=11742

diff -ur VTK6.0.0.rc3/IO/Video/vtkWin32VideoSource.cxx VTK6.0.0.rc3.new/IO/Video/vtkWin32VideoSource.cxx
--- VTK6.0.0.rc3/IO/Video/vtkWin32VideoSource.cxx	2013-06-13 05:47:10.000000000 +1000
+++ VTK6.0.0.rc3.new/IO/Video/vtkWin32VideoSource.cxx	2013-06-22 16:06:01.000000000 +1000
@@ -274,7 +274,7 @@
     }
 
   // set the user data to 'this'
-  vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(vtkLONG)this);
+  vtkSetWindowLong(this->Internal->ParentWnd,vtkGWL_USERDATA,(intptr_t)this);
 
   // Create the capture window
   this->Internal->CapWnd = capCreateCaptureWindow("Capture",
@@ -339,7 +339,7 @@
     }
 
   // set user data for callbacks
-  if (!capSetUserData(this->Internal->CapWnd,(long)this))
+  if (!capSetUserData(this->Internal->CapWnd,(intptr_t)this))
     {
     vtkErrorMacro(<< "Initialize: couldn't set user data for callback"\
                     << " (" << GetLastError() << ")");