edit: make long lines behave nicely
Lauri Tulmin
lauri_ at ut.ee
Thu Jan 13 15:55:05 CST 2005
To test this patch launch notepad and type a line long enough for
horizontal scrolling.
-------------- next part --------------
Index: dlls/user/edit.c
===================================================================
RCS file: /home/wine/wine/dlls/user/edit.c,v
retrieving revision 1.10
diff -u -p -r1.10 edit.c
--- dlls/user/edit.c 23 Dec 2004 17:21:05 -0000 1.10
+++ dlls/user/edit.c 13 Jan 2005 21:16:17 -0000
@@ -2848,7 +2848,7 @@ static BOOL EDIT_EM_LineScroll_internal(
dx = es->text_width - x_offset_in_pixels;
nyoff = max(0, es->y_offset + dy);
if (nyoff >= es->line_count - lines_per_page)
- nyoff = es->line_count - lines_per_page;
+ nyoff = max(0, es->line_count - lines_per_page);
dy = (es->y_offset - nyoff) * es->line_height;
if (dx || dy) {
RECT rc1;
More information about the wine-patches
mailing list