Corrected failure to update root box and crosshair position when
rescaling the internal units. The former in particular can cause problems when moving the root box and importing cells from a script (same change as made to magic-8.1).
This commit is contained in:
parent
18ebf84ad8
commit
8ca2db78a2
|
|
@ -1453,6 +1453,9 @@ void
|
||||||
DBScaleEverything(scalen, scaled)
|
DBScaleEverything(scalen, scaled)
|
||||||
int scalen, scaled;
|
int scalen, scaled;
|
||||||
{
|
{
|
||||||
|
void ToolScaleBox();
|
||||||
|
void DBWScaleCrosshair();
|
||||||
|
|
||||||
int dbCellDefEnumFunc();
|
int dbCellDefEnumFunc();
|
||||||
LinkedCellDef *lhead, *lcd;
|
LinkedCellDef *lhead, *lcd;
|
||||||
|
|
||||||
|
|
@ -1484,6 +1487,12 @@ DBScaleEverything(scalen, scaled)
|
||||||
/* Recovery of global plane pointers */
|
/* Recovery of global plane pointers */
|
||||||
MZAttachHintPlanes();
|
MZAttachHintPlanes();
|
||||||
|
|
||||||
|
/* Modify root box */
|
||||||
|
ToolScaleBox(scalen, scaled);
|
||||||
|
|
||||||
|
/* Modify crosshair position */
|
||||||
|
DBWScaleCrosshair(scalen, scaled);
|
||||||
|
|
||||||
SigEnableInterrupts();
|
SigEnableInterrupts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,18 @@ ToolGetBox(rootDef, rootArea)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ToolScaleBox --- Simple scaling of the root area box, no update needed */
|
||||||
|
|
||||||
|
void
|
||||||
|
ToolScaleBox(scalen, scaled)
|
||||||
|
int scalen;
|
||||||
|
int scaled;
|
||||||
|
{
|
||||||
|
DBScalePoint(&boxRootArea.r_ll, scalen, scaled);
|
||||||
|
DBScalePoint(&boxRootArea.r_ur, scalen, scaled);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ----------------------------------------------------------------------------
|
* ----------------------------------------------------------------------------
|
||||||
|
|
@ -474,6 +486,16 @@ DBWDrawCrosshair(window, plane)
|
||||||
window->w_screenArea.r_xtop, p.p_y);
|
window->w_screenArea.r_xtop, p.p_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* DBWScaleCrosshair --- Simple scaling of the crosshair point, no update needed */
|
||||||
|
|
||||||
|
void
|
||||||
|
DBWScaleCrosshair(scalen, scaled)
|
||||||
|
int scalen;
|
||||||
|
int scaled;
|
||||||
|
{
|
||||||
|
DBScalePoint(&crosshairPos, scalen, scaled);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ----------------------------------------------------------------------------
|
* ----------------------------------------------------------------------------
|
||||||
* DBWSetCrosshair --
|
* DBWSetCrosshair --
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue