sim: display separate modified status for flash and schematic

This commit is contained in:
openshwprojects
2022-11-29 17:52:48 +01:00
parent b78b4c5268
commit 5ee8b6a446
8 changed files with 38 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ void Tool_Move::onMouseDown(const Coord &pos, int button) {
}
if (button == SDL_BUTTON_RIGHT) {
if (currentTarget) {
sim->markAsModified();
currentTarget->rotateDegreesAroundSelf(90);
}
}
@@ -57,6 +58,7 @@ void Tool_Move::drawTool() {
Coord delta = nowPos - prevPos;
if (delta.isNonZero()) {
prevPos = nowPos;
sim->markAsModified();
currentTarget->translate(delta);
sim->getSim()->matchJunctionsOf_r(currentTarget);
}