Commit 187ef7d9 authored by Ken Martin's avatar Ken Martin
Browse files

Slightly better GetPixelData method

parent fbf61c1d
......@@ -1088,7 +1088,7 @@ int front)
bank_switch( this->Fd, 0, 0 );
dcblock_read( this->Fd, x_low, yloop,(x_hi - x_low + 1),1,buff3,FALSE );
if (this->Buffer)
if ((this->Buffer && (!front)) || ((!this->Buffer) && front))
{
for (xloop = 0; xloop <= (abs(x2-x1)); xloop++)
{
......@@ -1345,20 +1345,3 @@ void vtkSbrRenderWindow::CopyResultFrame(void)
this->Frame();
}
void vtkSbrRenderWindow::SaveImageAsPPM()
{
// flush and display the buffer
if (this->DoubleBuffer)
{
dbuffer_switch(this->Fd, this->Buffer = !(this->Buffer));
}
this->vtkRenderWindow::SaveImageAsPPM();
// flush and display the buffer
if (this->DoubleBuffer)
{
dbuffer_switch(this->Fd, this->Buffer = !(this->Buffer));
}
}
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