kernelbase: Use IOCTL_CONDRV_FILL_OUTPUT in FillConsoleOutputAttribute.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
bf6a803e04
commit
440e31a732
|
@ -400,7 +400,7 @@ DWORD WINAPI CtrlRoutine( void *arg )
|
||||||
BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputAttribute( HANDLE handle, WORD attr, DWORD length,
|
BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputAttribute( HANDLE handle, WORD attr, DWORD length,
|
||||||
COORD coord, DWORD *written )
|
COORD coord, DWORD *written )
|
||||||
{
|
{
|
||||||
BOOL ret;
|
struct condrv_fill_output_params params;
|
||||||
|
|
||||||
TRACE( "(%p,%d,%d,(%dx%d),%p)\n", handle, attr, length, coord.X, coord.Y, written );
|
TRACE( "(%p,%d,%d,(%dx%d),%p)\n", handle, attr, length, coord.X, coord.Y, written );
|
||||||
|
|
||||||
|
@ -411,19 +411,16 @@ BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputAttribute( HANDLE handle, WORD at
|
||||||
}
|
}
|
||||||
|
|
||||||
*written = 0;
|
*written = 0;
|
||||||
SERVER_START_REQ( fill_console_output )
|
|
||||||
{
|
params.mode = CHAR_INFO_MODE_ATTR;
|
||||||
req->handle = console_handle_unmap( handle );
|
params.x = coord.X;
|
||||||
req->x = coord.X;
|
params.y = coord.Y;
|
||||||
req->y = coord.Y;
|
params.count = length;
|
||||||
req->mode = CHAR_INFO_MODE_ATTR;
|
params.wrap = TRUE;
|
||||||
req->wrap = TRUE;
|
params.ch = 0;
|
||||||
req->data.attr = attr;
|
params.attr = attr;
|
||||||
req->count = length;
|
return console_ioctl( handle, IOCTL_CONDRV_FILL_OUTPUT, ¶ms, sizeof(params),
|
||||||
if ((ret = !wine_server_call_err( req ))) *written = reply->written;
|
written, sizeof(written), NULL );
|
||||||
}
|
|
||||||
SERVER_END_REQ;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue