X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca65c0440a7163e4e37e48b1c4329709d722db47..8f98c6c007769184f28dfb9dcd97075bd0efeddc:/src/generic/caret.cpp diff --git a/src/generic/caret.cpp b/src/generic/caret.cpp index 03040e1742..08dd830068 100644 --- a/src/generic/caret.cpp +++ b/src/generic/caret.cpp @@ -150,6 +150,23 @@ void wxCaret::DoMove() //else: will be shown at the correct location when it is shown } +void wxCaret::DoSize() +{ + int countVisible = m_countVisible; + if (countVisible > 0) + { + m_countVisible = 0; + DoHide(); + } + // Change bitmap size + m_bmpUnderCaret = wxBitmap(m_width, m_height); + if (countVisible > 0) + { + m_countVisible = countVisible; + DoShow(); + } +} + // ---------------------------------------------------------------------------- // handling the focus // ----------------------------------------------------------------------------