mirror of
https://github.com/fadden/6502bench.git
synced 2024-07-30 15:29:01 +00:00
Fix display of project/platform cross-ref adjustments
We were trying to use the in-file calculation for an external address, so the adjustment was always zero. Also, don't pass a fill brush for wireframe rendering. (No change in behavior.)
This commit is contained in:
parent
1da98d8628
commit
63b84dcece
@ -1541,9 +1541,8 @@ namespace SourceGen {
|
|||||||
sym.SymbolSource == Symbol.Source.Platform) {
|
sym.SymbolSource == Symbol.Source.Platform) {
|
||||||
DefSymbol defSym = sym as DefSymbol;
|
DefSymbol defSym = sym as DefSymbol;
|
||||||
int adj = 0;
|
int adj = 0;
|
||||||
if (operandOffset >= 0) {
|
Debug.Assert(operandOffset < 0); // outside file scope
|
||||||
adj = defSym.Value - operandOffset;
|
adj = defSym.Value - attr.OperandAddress;
|
||||||
}
|
|
||||||
defSym.Xrefs.Add(
|
defSym.Xrefs.Add(
|
||||||
new XrefSet.Xref(offset, true, xrefType, accType, adj));
|
new XrefSet.Xref(offset, true, xrefType, accType, adj));
|
||||||
} else {
|
} else {
|
||||||
|
@ -311,7 +311,7 @@ namespace SourceGen {
|
|||||||
using (DrawingContext dc = dv.RenderOpen()) {
|
using (DrawingContext dc = dv.RenderOpen()) {
|
||||||
dc.DrawRectangle(Brushes.Black, null, new Rect(0, 0, bounds.Width, bounds.Height));
|
dc.DrawRectangle(Brushes.Black, null, new Rect(0, 0, bounds.Width, bounds.Height));
|
||||||
Pen pen = new Pen(Brushes.White, 1.0);
|
Pen pen = new Pen(Brushes.White, 1.0);
|
||||||
dc.DrawGeometry(Brushes.White, pen, geo);
|
dc.DrawGeometry(null, pen, geo);
|
||||||
}
|
}
|
||||||
bitmap.Render(dv);
|
bitmap.Render(dv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user