Commit 9d7f367f authored by Jan Möbius's avatar Jan Möbius

Added Viewerproperty for snapshot

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10408 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c8d70792
......@@ -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)
{
......
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