kernel32: Use IOCTL_CONDRV_FILL_OUTPUT in CONSOLE_FillLineUniform.

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:43 +02:00 committed by Alexandre Julliard
parent a07aa965e5
commit dce5b9add1
1 changed files with 10 additions and 13 deletions

View File

@ -947,19 +947,16 @@ BOOL WINAPI WriteConsoleW(HANDLE hConsoleOutput, LPCVOID lpBuffer, DWORD nNumber
*/ */
void CONSOLE_FillLineUniform(HANDLE hConsoleOutput, int i, int j, int len, LPCHAR_INFO lpFill) void CONSOLE_FillLineUniform(HANDLE hConsoleOutput, int i, int j, int len, LPCHAR_INFO lpFill)
{ {
SERVER_START_REQ( fill_console_output ) struct condrv_fill_output_params params;
{
req->handle = console_handle_unmap(hConsoleOutput); 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 = lpFill->Char.UnicodeChar;
req->data.ch = lpFill->Char.UnicodeChar; params.attr = lpFill->Attributes;
req->data.attr = lpFill->Attributes; DeviceIoControl( hConsoleOutput, IOCTL_CONDRV_FILL_OUTPUT, &params, sizeof(params), NULL, 0, NULL, NULL );
wine_server_call_err( req );
}
SERVER_END_REQ;
} }
/****************************************************************** /******************************************************************