mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-06 15:29:18 +01:00
sim: display separate modified status for flash and schematic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user