Commit 296be8bc authored by Mike Kremer's avatar Mike Kremer
Browse files

Restructured code a bit.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9926 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ebd8e454
...@@ -2101,14 +2101,6 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo ...@@ -2101,14 +2101,6 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
if(_alpha) if(_alpha)
properties()->backgroundColor(backColorBak); properties()->backgroundColor(backColorBak);
_image = fb.toImage().copy(0, 0, w, h);
}
if(_width != 0 || _height != 0) {
// Reset viewport to former size
glstate_->viewport(left, bottom, bak_w, bak_h);
}
if(_hideCoordsys) { if(_hideCoordsys) {
// Find coordsys node // Find coordsys node
ACG::SceneGraph::BaseNode* node = 0; ACG::SceneGraph::BaseNode* node = 0;
...@@ -2117,6 +2109,14 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo ...@@ -2117,6 +2109,14 @@ void glViewer::snapshot(QImage& _image, int _width, int _height, bool _alpha, bo
node->show(); node->show();
} }
} }
_image = fb.toImage().copy(0, 0, w, h);
}
if(_width != 0 || _height != 0) {
// Reset viewport to former size
glstate_->viewport(left, bottom, bak_w, bak_h);
}
} }
void glViewer::snapshot( int _width, int _height, bool _alpha ) void glViewer::snapshot( int _width, int _height, bool _alpha )
......
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