No changes, just minor cleanup.

Don't call wxWindow::PrepareDC() which doesn't do anything anyhow.

Use wxBitmap::IsOk() instead of Ok().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-12-18 14:46:44 +00:00
parent 388feca61b
commit e75390d4aa

View File

@ -36,8 +36,7 @@ bool wxGenericStaticBitmap::Create(wxWindow *parent, wxWindowID id,
void wxGenericStaticBitmap::OnPaint(wxPaintEvent& WXUNUSED(event))
{
wxPaintDC dc(this);
PrepareDC(dc);
if (m_bitmap.Ok())
if (m_bitmap.IsOk())
dc.DrawBitmap(m_bitmap, 0, 0, true);
}