Fix tick suffix in snapshot file name.

This commit is contained in:
Markus Uhr 2017-11-15 00:23:50 +01:00 committed by Stephen Anthony
parent ed3b61fdb1
commit bfd12d7ddc
1 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,6 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix)
if (execDepth > 0) { if (execDepth > 0) {
drawWidget(false); drawWidget(false);
} }
int number = int(instance().getTicks() / 1000);
ostringstream sspath; ostringstream sspath;
sspath << instance().snapshotSaveDir() sspath << instance().snapshotSaveDir()
<< instance().console().properties().get(Cartridge_Name); << instance().console().properties().get(Cartridge_Name);
@ -71,7 +70,7 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix)
if (execDepth > 0 && !execPrefix.empty()) { if (execDepth > 0 && !execPrefix.empty()) {
sspath << execPrefix << "_"; sspath << execPrefix << "_";
} }
sspath << std::hex << std::setw(8) << std::setfill('0') << (number/1000 & 0xffffffff) << ".png"; sspath << std::hex << std::setw(8) << std::setfill('0') << (instance().getTicks()/1000 & 0xffffffff) << ".png";
const uInt32 width = instance().console().tia().width(), const uInt32 width = instance().console().tia().width(),
height = instance().console().tia().height(); height = instance().console().tia().height();