summaryrefslogtreecommitdiff
path: root/editors/fxite/files/patch-fxscintilla_ScintillaFOX.cxx
blob: e3ed009afb9d27a91ce84a66d5158d924fc8b3b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- fxscintilla/ScintillaFOX.cxx.orig	2013-10-03 09:22:51 UTC
+++ fxscintilla/ScintillaFOX.cxx
@@ -171,7 +171,7 @@ class ScintillaFOX : public ScintillaBase { (private)
   // From ScintillaBase
   virtual bool ModifyScrollBars(int nMax, int nPage);
   virtual void ReconfigureScrollBars();
-  virtual PRectangle GetClientRectangle();
+  virtual PRectangle GetClientRectangle() const;
   virtual int KeyDefault(int key, int modifiers);
 
   // Popup flag
@@ -662,7 +662,7 @@ sptr_t ScintillaFOX::DirectFunction(
   return sciThis->WndProc(iMessage, wParam, lParam);
 }
 
-PRectangle ScintillaFOX::GetClientRectangle() {
+PRectangle ScintillaFOX::GetClientRectangle() const {
   // Have to call FXScrollArea::getViewportXxxx instead of getViewportXxxx
   // to prevent infinite loop
 #ifdef FOX_1_6
@@ -1256,7 +1256,7 @@ long FXScintilla::onDNDMotion(FXObject* sender,FXSelec
   FXDragAction action;
   FXint pos;
   // Scroll into view
-  if(startAutoScroll(ev, TRUE)) return 1;
+  if(startAutoScroll(ev, true)) return 1;
 
   // Handled elsewhere
   if(FXScrollArea::onDNDMotion(sender,sel,ptr)) return 1;