wineconsole: Fix "Select all" functionality in USER backend.

Selection is stored in character cell coords, not in pixels.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Dmitry Timoshkov 2019-11-14 11:46:25 +08:00 committed by Alexandre Julliard
parent 8313551d26
commit bbdd1be4f8
1 changed files with 2 additions and 2 deletions

View File

@ -1310,8 +1310,8 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
break;
case IDS_SELECTALL:
PRIVATE(data)->selectPt1.X = PRIVATE(data)->selectPt1.Y = 0;
PRIVATE(data)->selectPt2.X = (data->curcfg.sb_width - 1) * data->curcfg.cell_width;
PRIVATE(data)->selectPt2.Y = (data->curcfg.sb_height - 1) * data->curcfg.cell_height;
PRIVATE(data)->selectPt2.X = data->curcfg.sb_width - 1;
PRIVATE(data)->selectPt2.Y = data->curcfg.sb_height - 1;
WCUSER_SetSelection(data, 0);
PRIVATE(data)->has_selection = TRUE;
break;