From bfd12d7ddcb03698b3f14e60ae5bdefce3a1d27c Mon Sep 17 00:00:00 2001 From: Markus Uhr Date: Wed, 15 Nov 2017 00:23:50 +0100 Subject: [PATCH] Fix tick suffix in snapshot file name. --- src/debugger/gui/TiaOutputWidget.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/debugger/gui/TiaOutputWidget.cxx b/src/debugger/gui/TiaOutputWidget.cxx index 210988242..9664b3f01 100644 --- a/src/debugger/gui/TiaOutputWidget.cxx +++ b/src/debugger/gui/TiaOutputWidget.cxx @@ -63,7 +63,6 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix) if (execDepth > 0) { drawWidget(false); } - int number = int(instance().getTicks() / 1000); ostringstream sspath; sspath << instance().snapshotSaveDir() << instance().console().properties().get(Cartridge_Name); @@ -71,7 +70,7 @@ void TiaOutputWidget::saveSnapshot(int execDepth, const string& execPrefix) if (execDepth > 0 && !execPrefix.empty()) { 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(), height = instance().console().tia().height();