X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2352862a7ee8440fdc2ae65baff31b73e40179d5..3fbba098a22ccaf72fbc640482b94146b374c372:/src/univ/button.cpp diff --git a/src/univ/button.cpp b/src/univ/button.cpp index 05f3c3373f..b26b313082 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: univ/button.cpp +// Name: src/univ/button.cpp // Purpose: wxButton // Author: Vadim Zeitlin // Modified by: @@ -79,8 +79,6 @@ static const wxCoord DEFAULT_BTN_MARGIN_Y = 0; // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl) - // ---------------------------------------------------------------------------- // creation // ---------------------------------------------------------------------------- @@ -213,7 +211,7 @@ void wxButton::DoDraw(wxControlRenderer *renderer) renderer->DrawButtonBorder(); } - renderer->DrawLabel(m_bitmap, m_marginBmpX, m_marginBmpY); + renderer->DrawButtonLabel(m_bitmap, m_marginBmpX, m_marginBmpY); } bool wxButton::DoDrawBackground(wxDC& dc)