Skip to content
Snippets Groups Projects
Commit 9d7f367f authored by Jan Möbius's avatar Jan Möbius
Browse files

Added Viewerproperty for snapshot

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10408 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c8d70792
No related branches found
No related tags found
No related merge requests found
......@@ -2222,14 +2222,9 @@ void glViewer::snapshot( int _width, int _height, bool _alpha )
QString fname = fi.path() + QDir::separator() +fi.baseName() + "." + QString::number(properties_.snapshotCounter()) + ".";
QString format="png";
fname += properties_.snapshotFileType();
if (fi.completeSuffix() == "ppm")
format="ppmraw";
fname += format;
bool rval=image.save(fname,format.toUpper().toLatin1());
bool rval=image.save(fname,properties_.snapshotFileType().toUpper().toLatin1());
if (rval)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment