Commit 8ba0ef86 authored by Lauri Tulmin's avatar Lauri Tulmin Committed by Alexandre Julliard

Make long lines behave nicely.

parent fc5ce145
...@@ -2843,7 +2843,7 @@ static BOOL EDIT_EM_LineScroll_internal(EDITSTATE *es, INT dx, INT dy) ...@@ -2843,7 +2843,7 @@ static BOOL EDIT_EM_LineScroll_internal(EDITSTATE *es, INT dx, INT dy)
dx = es->text_width - x_offset_in_pixels; dx = es->text_width - x_offset_in_pixels;
nyoff = max(0, es->y_offset + dy); nyoff = max(0, es->y_offset + dy);
if (nyoff >= es->line_count - lines_per_page) 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; dy = (es->y_offset - nyoff) * es->line_height;
if (dx || dy) { if (dx || dy) {
RECT rc1; RECT rc1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment