Skip to content

Commit

Permalink
make RenderVisualization() debug logging optional
Browse files Browse the repository at this point in the history
Message is now controlled by a TraceSwitch for the VisualizerControl
class.
  • Loading branch information
throwaway96 committed Sep 2, 2023
1 parent 6334c3b commit 0f935bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private Image RenderVisualization()

var bgPattern = new[] { Color.FromArgb(0x7F,0,0), Color.FromArgb(0x30,0x00,0x00) };
var addrStart = bmem.BaseAddress + vscroll.Value * LineLength;
Debug.Print("Visualizer: {0} {1:X}", addrStart, vscroll.Value);
trace.Verbose("Visualizer: {0} {1:X}", addrStart, vscroll.Value);
var bytesOnScreen = LinesOnScreen * LineLength;
var colors = visualizer.RenderBuffer(program, bmem, addrStart, bytesOnScreen, null);
int x = 0;
Expand Down

0 comments on commit 0f935bc

Please sign in to comment.