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:
parent
388feca61b
commit
e75390d4aa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user