X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a67a93b17c37c018f60e662645ee2a44ba4e58e..66080691b195b1b338a21c8887323b2e073d6028:/src/mac/toolbar.cpp diff --git a/src/mac/toolbar.cpp b/src/mac/toolbar.cpp index 4dad035bad..3c9b8da316 100644 --- a/src/mac/toolbar.cpp +++ b/src/mac/toolbar.cpp @@ -150,7 +150,8 @@ bool wxToolBar::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, cons m_x = x ; m_y = y ; } - return true ; + + return TRUE; } wxToolBar::~wxToolBar() @@ -386,7 +387,7 @@ bool wxToolBar::Realize() void wxToolBar::SetToolBitmapSize(const wxSize& size) { - m_defaultWidth = size.x; m_defaultHeight = size.y; + m_defaultWidth = size.x+2; m_defaultHeight = size.y+2; } // The button size is bigger than the bitmap size @@ -550,7 +551,6 @@ void wxToolBar::OnPaint(wxPaintEvent& event) } } UMASetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ; - wxDC::MacInvalidateSetup() ; } }