Commit 72fd2024 authored by Ben Boeckel's avatar Ben Boeckel

vtkOpenGLImageMapper: fix unintentional shadowing

Change-Id: I7cc94d59f7f8ae8de7a6e9ddf7f308f00fa3ad89
parent 3ed64fc0
......@@ -675,8 +675,8 @@ void vtkOpenGLImageMapper::DrawPixels(vtkViewport *viewport, int width, int heig
{
int rectwidth = (actorPos2[0] - actorPos[0]) + 1;
int rectheight = (actorPos2[1] - actorPos[1]) + 1;
float xscale = static_cast<float>(rectwidth)/width;
float yscale = static_cast<float>(rectheight)/height;
xscale = static_cast<float>(rectwidth)/width;
yscale = static_cast<float>(rectheight)/height;
}
vtkPolyData *pd = vtkPolyDataMapper2D::SafeDownCast(this->Actor->GetMapper())->GetInput();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment