X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af76254d1930da6287fca442f3d10369fcb633f7..38f833b10c071603eb8d7739ab31b1c07c4576f1:/src/generic/caret.cpp diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 54cab63e4b..7d5569997c 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -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