diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 9 | ||||
-rw-r--r-- | src/Editor.h | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 360e991e9..74c0b06ac 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -45,7 +45,8 @@ Editor::Editor() { hideSelection = false; inOverstrike = false; errorStatus = 0; - + mouseDownCaptures = true; + bufferedDraw = true; lastClickTime = 0; @@ -4292,6 +4293,12 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) { case SCI_GETSTATUS: return errorStatus; + case SCI_SETMOUSEDOWNCAPTURES: + mouseDownCaptures = wParam; + + case SCI_GETMOUSEDOWNCAPTURES: + return mouseDownCaptures; + #ifdef MACRO_SUPPORT case SCI_STARTRECORD: recordingMacro = 1; diff --git a/src/Editor.h b/src/Editor.h index 3d1c48f4d..f51c1440b 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -66,7 +66,8 @@ protected: // ScintillaBase subclass needs access to much of Editor bool hideSelection; bool inOverstrike; int errorStatus; - + bool mouseDownCaptures; + // In bufferedDraw mode, graphics operations are drawn to a pixmap and then copied to // the screen. This avoids flashing but is about 30% slower. bool bufferedDraw; |