+ m_dc->GetSize(&widthDC, &heightDC);
+
+ int widthBuf = m_buffer->GetWidth(),
+ heightBuf = m_buffer->GetHeight();
+
+ m_dc->Blit(0, 0,
+ wxMin(widthDC, widthBuf), wxMin(heightDC, heightBuf),
+ this,
+ -x, -y);
+ m_dc = NULL;
+
+ if ( m_style & wxBUFFER_USES_SHARED_BUFFER )
+ wxSharedDCBufferManager::ReleaseBuffer(m_buffer);
+}