X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/stdrend.cpp diff --git a/src/univ/stdrend.cpp b/src/univ/stdrend.cpp index ef8af5c391..64e7903504 100644 --- a/src/univ/stdrend.cpp +++ b/src/univ/stdrend.cpp @@ -169,7 +169,7 @@ void wxStdRenderer::DrawBackground(wxDC& dc, { wxColour colBg; - if (col.Ok()) + if (col.IsOk()) { colBg = col; } @@ -678,7 +678,7 @@ void wxStdRenderer::DrawCheckButton(wxDC& dc, wxAlignment align, int indexAccel) { - if (bitmap.Ok()) + if (bitmap.IsOk()) DrawCheckOrRadioButton(dc, label, bitmap, rect, flags, align, indexAccel); else DrawCheckOrRadioButton(dc, label, GetCheckBitmap(flags), rect, flags, align, indexAccel); @@ -692,7 +692,7 @@ void wxStdRenderer::DrawRadioButton(wxDC& dc, wxAlignment align, int indexAccel) { - if (bitmap.Ok()) + if (bitmap.IsOk()) DrawCheckOrRadioButton(dc, label, bitmap, rect, flags, align, indexAccel); else DrawCheckOrRadioButton(dc, label, GetRadioBitmap(flags), rect, flags, align, indexAccel); @@ -892,6 +892,8 @@ void wxStdRenderer::DrawStatusField(wxDC& dc, DrawBorder(dc, wxBORDER_RAISED, rect, flags, &rectIn); else if ( style != wxSB_FLAT ) DrawBorder(dc, wxBORDER_STATIC, rect, flags, &rectIn); + else + rectIn = rect; rectIn.Deflate(GetStatusBarFieldMargins()); @@ -1146,7 +1148,7 @@ void wxStdRenderer::DrawFrameIcon(wxDC& dc, const wxIcon& icon, int flags) { - if ( icon.Ok() ) + if ( icon.IsOk() ) { wxRect r = GetFrameClientArea(rect, flags & ~wxTOPLEVEL_TITLEBAR); dc.DrawIcon(icon, r.x, r.y); @@ -1172,7 +1174,7 @@ void wxStdRenderer::DrawFrameButton(wxDC& dc, } wxBitmap bmp = GetFrameButtonBitmap(idx); - if ( !bmp.Ok() ) + if ( !bmp.IsOk() ) return; wxRect rectBtn(x, y, FRAME_BUTTON_WIDTH, FRAME_BUTTON_HEIGHT);