mirror of https://github.com/stella-emu/stella.git
Minor fixups for last commits.
This commit is contained in:
parent
bfd12d7ddc
commit
9ada07a733
|
@ -1061,7 +1061,7 @@ void DebuggerParser::executeDump()
|
||||||
file << execPrefix;
|
file << execPrefix;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
file << std::hex << std::setw(8) << std::setfill('0') << (debugger.myOSystem.getTicks()/1000 & 0xffffffff);
|
file << std::hex << std::setw(8) << std::setfill('0') << uInt32(debugger.myOSystem.getTicks()/1000);
|
||||||
}
|
}
|
||||||
file << ".dump";
|
file << ".dump";
|
||||||
FilesystemNode node(file.str());
|
FilesystemNode node(file.str());
|
||||||
|
@ -1140,7 +1140,7 @@ void DebuggerParser::executeExec()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ostringstream prefix;
|
ostringstream prefix;
|
||||||
prefix << std::hex << std::setw(8) << std::setfill('0') << (debugger.myOSystem.getTicks()/1000 & 0xffffffff);
|
prefix << std::hex << std::setw(8) << std::setfill('0') << uInt32(debugger.myOSystem.getTicks()/1000);
|
||||||
execPrefix = prefix.str();
|
execPrefix = prefix.str();
|
||||||
}
|
}
|
||||||
execDepth++;
|
execDepth++;
|
||||||
|
|
|
@ -70,14 +70,14 @@ 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') << (instance().getTicks()/1000 & 0xffffffff) << ".png";
|
sspath << std::hex << std::setw(8) << std::setfill('0') << uInt32(instance().getTicks()/1000) << ".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();
|
||||||
FBSurface& s = dialog().surface();
|
FBSurface& s = dialog().surface();
|
||||||
|
|
||||||
GUI::Rect rect(_x, _y, _x + width*2, _y + height);
|
GUI::Rect rect(_x, _y, _x + width*2, _y + height);
|
||||||
string message = "snapshot saved";
|
string message = "Snapshot saved";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
instance().png().saveImage(sspath.str(), s, rect);
|
instance().png().saveImage(sspath.str(), s, rect);
|
||||||
|
|
|
@ -36,8 +36,7 @@ class TiaOutputWidget : public Widget, public CommandSender
|
||||||
void loadConfig() override;
|
void loadConfig() override;
|
||||||
void setZoomWidget(TiaZoomWidget* w) { myZoom = w; }
|
void setZoomWidget(TiaZoomWidget* w) { myZoom = w; }
|
||||||
|
|
||||||
void saveSnapshot() { saveSnapshot(0, ""); };
|
void saveSnapshot(int execDepth = 0, const string& execPrefix = "");
|
||||||
void saveSnapshot(int execDepth, const string& execPrefix);
|
|
||||||
|
|
||||||
// Eventually, these methods will enable access to the onscreen TIA image
|
// Eventually, these methods will enable access to the onscreen TIA image
|
||||||
// For example, clicking an area may cause an action
|
// For example, clicking an area may cause an action
|
||||||
|
|
Loading…
Reference in New Issue