mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Merge pull request #120 from daleglass-overte/fix-animated-screenshots
Fix bug in naming animated screenshots since the change to PNG
This commit is contained in:
commit
44702b3e26
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ void SnapshotAnimated::saveSnapshotAnimated(QString pathStill, float aspectRatio
|
||||||
SnapshotAnimated::snapshotStillPath = pathStill;
|
SnapshotAnimated::snapshotStillPath = pathStill;
|
||||||
SnapshotAnimated::snapshotAnimatedPath = pathStill;
|
SnapshotAnimated::snapshotAnimatedPath = pathStill;
|
||||||
SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif");
|
SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif");
|
||||||
|
SnapshotAnimated::snapshotAnimatedPath.replace("png", "gif");
|
||||||
|
|
||||||
// Ensure the snapshot timer is Precise (attempted millisecond precision)
|
// Ensure the snapshot timer is Precise (attempted millisecond precision)
|
||||||
SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer);
|
SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer);
|
||||||
|
@ -148,7 +149,7 @@ void SnapshotAnimated::processFrames() {
|
||||||
GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter));
|
GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter));
|
||||||
|
|
||||||
SnapshotAnimated::clearTempVariables();
|
SnapshotAnimated::clearTempVariables();
|
||||||
|
|
||||||
// Update the "Share" dialog with the processed GIF.
|
// Update the "Share" dialog with the processed GIF.
|
||||||
emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath);
|
emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue