Commit c811711d authored by Ken Martin's avatar Ken Martin
Browse files

changed get set rgb data so it's right side up

parent 2657b8f6
...@@ -733,7 +733,7 @@ unsigned char *vtkGlrRenderWindow::GetPixelData(int x1, int y1, int x2, int y2, ...@@ -733,7 +733,7 @@ unsigned char *vtkGlrRenderWindow::GetPixelData(int x1, int y1, int x2, int y2,
readsource(SRC_BACK); readsource(SRC_BACK);
} }
p_data = data; p_data = data;
for (yloop = y_low; yloop <= y_hi; yloop++) for (yloop = y_hi; yloop >= y_low; yloop--)
{ {
// read in a row of pixels // read in a row of pixels
lrectread(x_low,yloop,x_hi,yloop,buffer); lrectread(x_low,yloop,x_hi,yloop,buffer);
...@@ -803,7 +803,7 @@ void vtkGlrRenderWindow::SetPixelData(int x1, int y1, int x2, int y2, ...@@ -803,7 +803,7 @@ void vtkGlrRenderWindow::SetPixelData(int x1, int y1, int x2, int y2,
/* now write the binary info one row at a time */ /* now write the binary info one row at a time */
p_data = data; p_data = data;
for (yloop = y_low; yloop <= y_hi; yloop++) for (yloop = y_hi; yloop >= y_low; yloop--)
{ {
for (xloop = 0; xloop <= (abs(x2-x1)); xloop++) for (xloop = 0; xloop <= (abs(x2-x1)); xloop++)
{ {
......
Supports Markdown
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