Skip to content

Commit

Permalink
ViewerWindow: color canvas red, scrollwindow blue, viewerwindow green
Browse files Browse the repository at this point in the history
...in debug mode only.
  • Loading branch information
bk138 committed Jan 21, 2024
1 parent 783d758 commit 20b8613
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gui/ViewerWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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
}


Expand Down

0 comments on commit 20b8613

Please sign in to comment.