[Orxonox-commit 3726] r8406 - code/trunk/src/modules/designtools
dafrick at orxonox.net
dafrick at orxonox.net
Thu May 5 21:11:46 CEST 2011
Author: dafrick
Date: 2011-05-05 21:11:46 +0200 (Thu, 05 May 2011)
New Revision: 8406
Modified:
code/trunk/src/modules/designtools/ScreenshotManager.cc
Log:
Quick fix for ScreenshotManager, such that it only needs memory when it is actually used.
Modified: code/trunk/src/modules/designtools/ScreenshotManager.cc
===================================================================
--- code/trunk/src/modules/designtools/ScreenshotManager.cc 2011-05-05 15:31:25 UTC (rev 8405)
+++ code/trunk/src/modules/designtools/ScreenshotManager.cc 2011-05-05 19:11:46 UTC (rev 8406)
@@ -73,9 +73,6 @@
// Flag for overlay rendering
this->disableOverlays_ = true;
-
- // Update the values
- this->update();
}
ScreenshotManager::~ScreenshotManager()
@@ -140,7 +137,7 @@
if(finalImage != NULL)
{
// Save it.
- finalImage->save(PathConfig::getInstance().getLogPathString() + "screenshot_" + getTimestamp() + "." + this->fileExtension_);
+ finalImage->save(PathConfig::getInstance().getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_);
delete finalImage;
COUT(3) << "Finished taking " << this->gridSize_*this->windowWidth_ << "x" << this->gridSize_*this->windowHeight_ << " pixel HD screenshot. Storing in log/." << endl;
}
More information about the Orxonox-commit
mailing list