diff options
| author | nyamatongwe <devnull@localhost> | 2001-03-02 06:44:39 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-03-02 06:44:39 +0000 | 
| commit | f3d66c88fa18812eb6dbb36ff3e7bae8bf26d1c8 (patch) | |
| tree | 0acd6b737b13a1bfae21ace8675cf075c3502e02 /src | |
| parent | 4b6ad3a07d992ca55d91ccc077b889f960217345 (diff) | |
| download | scintilla-mirror-f3d66c88fa18812eb6dbb36ff3e7bae8bf26d1c8.tar.gz | |
Removed use of Platform::SendScintilla as that is indirect was of talking
to this - diret way should be used instead.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ScintillaBase.cxx | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 648bd03ac..ee4f5615f 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -17,7 +17,6 @@  #ifdef SCI_LEXER  #include "SciLexer.h"  #include "Accessor.h" -#include "WindowAccessor.h"  #include "DocumentAccessor.h"  #include "KeyWords.h"  #endif @@ -338,7 +337,7 @@ void ScintillaBase::ButtonDown(Point pt, unsigned int curTime, bool shift, bool  #ifdef SCI_LEXER  void ScintillaBase::Colourise(int start, int end) { -	int lengthDoc = Platform::SendScintilla(wMain.GetID(), SCI_GETLENGTH, 0, 0); +	int lengthDoc = pdoc->Length();  	if (end == -1)  		end = lengthDoc;  	int len = end - start; @@ -359,9 +358,9 @@ void ScintillaBase::Colourise(int start, int end) {  void ScintillaBase::NotifyStyleToNeeded(int endStyleNeeded) {  #ifdef SCI_LEXER  	if (lexLanguage != SCLEX_CONTAINER) { -		int endStyled = Platform::SendScintilla(wMain.GetID(), SCI_GETENDSTYLED, 0, 0); -		int lineEndStyled = Platform::SendScintilla(wMain.GetID(), SCI_LINEFROMPOSITION, endStyled, 0); -		endStyled = Platform::SendScintilla(wMain.GetID(), SCI_POSITIONFROMLINE, lineEndStyled, 0); +		int endStyled = WndProc(SCI_GETENDSTYLED, 0, 0); +		int lineEndStyled = WndProc(SCI_LINEFROMPOSITION, endStyled, 0); +		endStyled = WndProc(SCI_POSITIONFROMLINE, lineEndStyled, 0);  		Colourise(endStyled, endStyleNeeded);  		return;  	} | 
