kernelbase: Use IOCTL_CONDRV_FILL_OUTPUT in fill_console_output.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-07-14 16:23:35 +02:00 committed by Alexandre Julliard
parent 440e31a732
commit a07aa965e5
1 changed files with 10 additions and 13 deletions

View File

@ -163,19 +163,16 @@ static void char_info_AtoW( CHAR_INFO *buffer, int count )
/* helper function for ScrollConsoleScreenBufferW */ /* helper function for ScrollConsoleScreenBufferW */
static void fill_console_output( HANDLE handle, int i, int j, int len, CHAR_INFO *fill ) static void fill_console_output( HANDLE handle, int i, int j, int len, CHAR_INFO *fill )
{ {
SERVER_START_REQ( fill_console_output ) struct condrv_fill_output_params params;
{
req->handle = console_handle_unmap( handle ); params.mode = CHAR_INFO_MODE_TEXTATTR;
req->mode = CHAR_INFO_MODE_TEXTATTR; params.x = i;
req->x = i; params.y = j;
req->y = j; params.count = len;
req->count = len; params.wrap = FALSE;
req->wrap = FALSE; params.ch = fill->Char.UnicodeChar;
req->data.ch = fill->Char.UnicodeChar; params.attr = fill->Attributes;
req->data.attr = fill->Attributes; console_ioctl( handle, IOCTL_CONDRV_FILL_OUTPUT, &params, sizeof(params), NULL, 0, NULL );
wine_server_call_err( req );
}
SERVER_END_REQ;
} }
/* helper function for GetLargestConsoleWindowSize */ /* helper function for GetLargestConsoleWindowSize */