From 639c57612568acae901f268f45b4ac1c3e8cbff2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 3 Dec 2004 23:14:04 +0000 Subject: Patch from Regis Vaquette to allow compilation for Windows CE. --- src/Editor.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Editor.cxx') 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(); } -- cgit v1.2.3