summaryrefslogtreecommitdiff
path: root/math/vtk43/files/patch-IO-vtkBMPReader.cxx
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-04-04 22:47:58 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-04-04 22:47:58 +0000
commit37468a2901713be858b0ef85728684adbe6429ca (patch)
treec8ca78b5c145d6479e1ef1244d79d190019e3f5b /math/vtk43/files/patch-IO-vtkBMPReader.cxx
parent[REPOCOPY] net/hawknl-devel: Portable networking library (devel) (diff)
Reintroduce legacy port: vtk 4.3
I'd like to reintroduce VTK 4.3 to the ports tree to facilitate building a new port, Caret 5.3. Starting with VTK 4.4, support for "float" coordinates has been dropped from many functions. The Caret code will require significant changes to compile with VTK 4.4. Since the Caret developers do not yet have a timeline for upgrading to VTK 4.4, I'd like to reintroduce VTK 4.3 for the interim. Only the vtk base and vtk-headers are essential. Below are shar files for these two trees. They are based on the original vtk 4.3 port. The only modifications are: 1. The folder names are changed from vtk and vtk-headers to vtk43 and vtk43-headers to prevent a collision with the current vtk in /usr/ports/math. 2. PREFIX is set to ${LOCALBASE}/vtk43 to prevent a collision with the current vtk installation. PR: ports/92468 Submitted by: Jason Bacon <bacon@smithers.neuro.mcw.edu>
Diffstat (limited to 'math/vtk43/files/patch-IO-vtkBMPReader.cxx')
-rw-r--r--math/vtk43/files/patch-IO-vtkBMPReader.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/math/vtk43/files/patch-IO-vtkBMPReader.cxx b/math/vtk43/files/patch-IO-vtkBMPReader.cxx
new file mode 100644
index 000000000000..f82deeb825e5
--- /dev/null
+++ b/math/vtk43/files/patch-IO-vtkBMPReader.cxx
@@ -0,0 +1,16 @@
+diff -u -r1.44 -r1.45
+--- IO/vtkBMPReader.cxx 2003/09/10 19:41:56 1.44
++++ IO/vtkBMPReader.cxx 2003/10/19 14:38:03 1.45
+@@ -504,11 +504,11 @@
+ outPtr0 += outIncr[0];
+ }
+ // move to the next row in the file and data
+- self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip0, ios::beg);
++ self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip0, ios::beg);
+ outPtr1 += outIncr[1];
+ }
+ // move to the next image in the file and data
+- self->GetFile()->seekg(self->GetFile()->tellg() + streamSkip1, ios::beg);
++ self->GetFile()->seekg(static_cast<long>(self->GetFile()->tellg()) + streamSkip1, ios::beg);
+ outPtr2 += outIncr[2];
+ }