resetting when necessary

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-10-10 19:04:21 +00:00
parent c0badae100
commit 5cf94cc71c

View File

@@ -131,6 +131,9 @@ void wxCaret::DoHide()
void wxCaret::DoMove()
{
#if wxUSE_OVERLAY
m_overlay.Reset();
#endif
if ( IsVisible() )
{
if ( !m_blinkedOut )
@@ -155,7 +158,9 @@ void wxCaret::DoSize()
m_countVisible = 0;
DoHide();
}
#if wxUSE_OVERLAY == 0
#if wxUSE_OVERLAY
m_overlay.Reset();
#else
// Change bitmap size
m_bmpUnderCaret = wxBitmap(m_width, m_height);
#endif