From bfbab2b8229278b2d464d7c358a1f07be1008ff1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 6 Jan 2009 17:06:33 +0000 Subject: [PATCH] Use own cursor implementation if Mac CG=1, since otherwise there are cursor dropouts with more than one wxRTC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/richtext/richtextbuffer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/richtext/richtextbuffer.h b/include/wx/richtext/richtextbuffer.h index 5188c95a6f..e0a368b16b 100644 --- a/include/wx/richtext/richtextbuffer.h +++ b/include/wx/richtext/richtextbuffer.h @@ -73,7 +73,11 @@ // Setting wxRICHTEXT_USE_OWN_CARET to 1 implements a non-flashing // cursor reliably without using wxClientDC in case there // are platform-specific problems with the generic caret. +#if defined(wxMAC_USE_CORE_GRAPHICS) && wxMAC_USE_CORE_GRAPHICS +#define wxRICHTEXT_USE_OWN_CARET 1 +#else #define wxRICHTEXT_USE_OWN_CARET 0 +#endif // Switch off for binary compatibility, on for faster drawing #define wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING 0