mirror of
https://github.com/reactos/reactos.git
synced 2024-09-05 18:26:53 +00:00
brbak <mpd000@yahoo.de>:
fixes repositioning of text (from bug 749) svn path=/trunk/; revision=17976
This commit is contained in:
parent
080f8f4a31
commit
c284fca775
|
@ -2919,7 +2919,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;
|
||||||
|
|
Loading…
Reference in a new issue