///////////////////////////////////////////////////////////////////////////////
-// Name: src/generic/statbmp.cpp
+// Name: src/generic/statbmpg.cpp
// Purpose: wxGenericStaticBitmap
// Author: Marcin Wojdyr, Stefan Csomor
// Created: 2008-06-16
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);
}