Commit 8f6cd006 authored by Ken Martin's avatar Ken Martin
Browse files

fixed get/set pixel data bug

parent 0e935555
......@@ -1059,8 +1059,8 @@ int front)
/* now read the binary info one row at a time */
p_data = data;
for (yloop = (this->Size[1] - y_hi - 1);
yloop <= (this->Size[1] - y_low -1); yloop++)
for (yloop = (this->Size[1] - y_low - 1);
yloop >= (this->Size[1] - y_hi -1); yloop--)
{
if (this->NumPlanes == 24)
{
......@@ -1236,8 +1236,8 @@ void vtkSbrRenderWindow::SetPixelData(int x1, int y1, int x2, int y2,
/* now write the binary info one row at a time */
p_data = data;
for (yloop = (this->Size[1] - y_hi - 1);
yloop <= (this->Size[1] - y_low -1); yloop++)
for (yloop = (this->Size[1] - y_low - 1);
yloop >= (this->Size[1] - y_hi -1); yloop--)
{
if (this->NumPlanes == 24)
{
......
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