Skip to content

Commit 0736a59

Browse files
committed
Set the background colour on Windows only
1 parent 7baf9e4 commit 0736a59

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pstack/gui/main_window.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@ constexpr int tab_padding = 7;
2828
constexpr int inner_border = 5;
2929
constexpr int button_height = 25;
3030
const wxSize button_size = wxSize(-1, button_height);
31+
#ifdef _WIN32
3132
const wxColour background_colour = wxColour(0xF0, 0xF0, 0xF0);
33+
#endif
3234

3335
main_window::main_window(const wxString& title)
3436
: wxFrame(nullptr, wxID_ANY, title, wxDefaultPosition, wxDefaultSize)
3537
{
36-
Bind(wxEVT_CLOSE_WINDOW, &main_window::on_close, this);
37-
38+
#ifdef _WIN32
3839
SetBackgroundColour(background_colour);
40+
#endif
41+
42+
Bind(wxEVT_CLOSE_WINDOW, &main_window::on_close, this);
3943
SetMenuBar(make_menu_bar());
4044

4145
wxGLAttributes attrs;

0 commit comments

Comments
 (0)