From 20b8613b711950e787364fb9cbf97a202653e806 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 21 Jan 2024 22:23:13 +0100 Subject: [PATCH] ViewerWindow: color canvas red, scrollwindow blue, viewerwindow green ...in debug mode only. --- src/gui/ViewerWindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gui/ViewerWindow.cpp b/src/gui/ViewerWindow.cpp index 73600829..99e063d9 100644 --- a/src/gui/ViewerWindow.cpp +++ b/src/gui/ViewerWindow.cpp @@ -103,6 +103,10 @@ VNCCanvas::VNCCanvas(wxWindow* parent, VNCConn* c): update_timer.SetOwner(this, VNCCANVAS_UPDATE_TIMER_ID); update_timer.Start(VNCCANVAS_UPDATE_TIMER_INTERVAL); + +#ifdef __WXDEBUG__ + SetBackgroundColour(*wxRED); +#endif } @@ -351,6 +355,10 @@ ViewerWindow::ViewerWindow(wxWindow* parent, VNCConn* conn): // the upper subwindow canvas_container = new wxScrolledWindow(this); +#ifdef __WXDEBUG__ + canvas_container->SetBackgroundColour(*wxBLUE); +#endif + canvas_container->SetScrollRate(VIEWERWINDOW_SCROLL_RATE, VIEWERWINDOW_SCROLL_RATE); GetSizer()->Add(canvas_container, 1, wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 3); @@ -420,6 +428,10 @@ ViewerWindow::ViewerWindow(wxWindow* parent, VNCConn* conn): stats_container->GetSizer()->SetSizeHints(stats_container); stats_timer.SetOwner(this, VIEWERWINDOW_STATS_TIMER_ID); + +#ifdef __WXDEBUG__ + SetBackgroundColour(*wxGREEN); +#endif }