kernelbase: Use IOCTL_CONDRV_SET_OUTPUT_INFO in SetConsoleScreenBufferSize.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b21d2e5f58
commit
f7a7633aa1
|
@ -1357,19 +1357,13 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx( HANDLE handle,
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize( HANDLE handle, COORD size )
|
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize( HANDLE handle, COORD size )
|
||||||
{
|
{
|
||||||
BOOL ret;
|
struct condrv_output_info_params params = { SET_CONSOLE_OUTPUT_INFO_SIZE };
|
||||||
|
|
||||||
TRACE( "(%p,(%d,%d))\n", handle, size.X, size.Y );
|
TRACE( "(%p,(%d,%d))\n", handle, size.X, size.Y );
|
||||||
SERVER_START_REQ( set_console_output_info )
|
|
||||||
{
|
params.info.width = size.X;
|
||||||
req->handle = console_handle_unmap( handle );
|
params.info.height = size.Y;
|
||||||
req->width = size.X;
|
return console_ioctl( handle, IOCTL_CONDRV_SET_OUTPUT_INFO, ¶ms, sizeof(params), NULL, 0, NULL );
|
||||||
req->height = size.Y;
|
|
||||||
req->mask = SET_CONSOLE_OUTPUT_INFO_SIZE;
|
|
||||||
ret = !wine_server_call_err( req );
|
|
||||||
}
|
|
||||||
SERVER_END_REQ;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue