diff options
author | nyamatongwe <devnull@localhost> | 2004-12-03 23:14:04 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-12-03 23:14:04 +0000 |
commit | 860e52f3760e59e262145b029d0a3cdf814c745c (patch) | |
tree | b00c6a12ff5733c205aa607c94521374b3511ac6 /src/Editor.cxx | |
parent | a9ffc36995207d728b8e8c3096303caa479de54a (diff) | |
download | scintilla-mirror-860e52f3760e59e262145b029d0a3cdf814c745c.tar.gz |
Patch from Regis Vaquette to allow compilation for Windows CE.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 399e65976..fbb0b694c 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1065,11 +1065,15 @@ void Editor::ScrollTo(int line, bool moveThumb) { SetTopLine(topLineNew); ShowCaretAtCurrentPosition(); // Perform redraw rather than scroll if many lines would be redrawn anyway. +#ifndef UNDER_CE if (abs(linesToMove) <= 10) { ScrollText(linesToMove); } else { Redraw(); } +#else + Redraw(); +#endif if (moveThumb) { SetVerticalScrollPos(); } |