diff options
| author | nyamatongwe <unknown> | 2001-03-02 06:44:39 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-03-02 06:44:39 +0000 | 
| commit | 3b7e9a4b6cd98a346d4ab6a36e8ea3c1d8082d43 (patch) | |
| tree | 0acd6b737b13a1bfae21ace8675cf075c3502e02 /src/ScintillaBase.cxx | |
| parent | 71b0478ffef25d2ba759c87a235fd88f5b476f90 (diff) | |
| download | scintilla-mirror-3b7e9a4b6cd98a346d4ab6a36e8ea3c1d8082d43.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/ScintillaBase.cxx')
| -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;  	} | 
