X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..14e40b5aacd99b193d92c28b348b44441e5173bf:/src/stubs/bmpbuttn.cpp diff --git a/src/stubs/bmpbuttn.cpp b/src/stubs/bmpbuttn.cpp index 9e46c22b2b..b39c2c3bcd 100644 --- a/src/stubs/bmpbuttn.cpp +++ b/src/stubs/bmpbuttn.cpp @@ -15,9 +15,7 @@ #include "wx/bmpbuttn.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton) -#endif bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, @@ -30,8 +28,8 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID id, const wxBitmap& bit SetValidator(validator); parent->AddChild(this); - m_backgroundColour = parent->GetDefaultBackgroundColour() ; - m_foregroundColour = parent->GetDefaultForegroundColour() ; + m_backgroundColour = parent->GetBackgroundColour() ; + m_foregroundColour = parent->GetForegroundColour() ; m_windowStyle = style; m_marginX = 0; m_marginY = 0;