conhost: Fix copy-paste typos in selection coordinates.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50052
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-12-21 18:38:22 +01:00 committed by Alexandre Julliard
parent 402532b3fd
commit 3d2b423328
1 changed files with 3 additions and 3 deletions

View File

@ -878,7 +878,7 @@ static COORD get_cell( struct console *console, LPARAM lparam )
{
COORD c;
c.X = console->active->win.left + (short)LOWORD(lparam) / console->active->font.width;
c.Y = console->active->win.left + (short)HIWORD(lparam) / console->active->font.height;
c.Y = console->active->win.top + (short)HIWORD(lparam) / console->active->font.height;
return c;
}
@ -906,11 +906,11 @@ static void get_selection_rect( struct console *console, RECT *r )
r->left = (min(console->window->selection_start.X, console->window->selection_end.X) -
console->active->win.left) * console->active->font.width;
r->top = (min(console->window->selection_start.Y, console->window->selection_end.Y) -
console->active->win.left) * console->active->font.height;
console->active->win.top) * console->active->font.height;
r->right = (max(console->window->selection_start.X, console->window->selection_end.X) + 1 -
console->active->win.left) * console->active->font.width;
r->bottom = (max(console->window->selection_start.Y, console->window->selection_end.Y) + 1 -
console->active->win.left) * console->active->font.height;
console->active->win.top) * console->active->font.height;
}
static void update_selection( struct console *console, HDC ref_dc )