// common programming error among wxWidgets programmers and might lead to
// very subtle and difficult to debug refresh/repaint bugs.
int g_isPainting = 0;
// common programming error among wxWidgets programmers and might lead to
// very subtle and difficult to debug refresh/repaint bugs.
int g_isPainting = 0;
// TODO: don't duplicate wxPaintDC code here!!
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
// TODO: don't duplicate wxPaintDC code here!!
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
{
RestoreDC((HDC) m_hDC, saveState);
ms_cache.RemoveAt(index);
{
RestoreDC((HDC) m_hDC, saveState);
ms_cache.RemoveAt(index);