From 0f935bc1f5c00df9935d18446c65aefb8efbafea Mon Sep 17 00:00:00 2001 From: throwaway96 <68320646+throwaway96@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:51:36 -0400 Subject: [PATCH] make RenderVisualization() debug logging optional Message is now controlled by a TraceSwitch for the VisualizerControl class. --- src/UserInterfaces/WindowsForms/Controls/VisualizerControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UserInterfaces/WindowsForms/Controls/VisualizerControl.cs b/src/UserInterfaces/WindowsForms/Controls/VisualizerControl.cs index 7995524fee..a217913e65 100644 --- a/src/UserInterfaces/WindowsForms/Controls/VisualizerControl.cs +++ b/src/UserInterfaces/WindowsForms/Controls/VisualizerControl.cs @@ -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;