Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0c3c89b7
Commit
0c3c89b7
authored
Jul 09, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Use IOCTL_CONDRV_GET_OUTPUT_INFO in get_console_font_size.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af3320c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
console.c
dlls/kernel32/console.c
+5
-8
No files found.
dlls/kernel32/console.c
View file @
0c3c89b7
...
...
@@ -1391,6 +1391,7 @@ BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, CONSOLE_FONT_
static
COORD
get_console_font_size
(
HANDLE
hConsole
,
DWORD
index
)
{
struct
condrv_output_info
info
;
COORD
c
=
{
0
,
0
};
if
(
index
>=
GetNumberOfConsoleFonts
())
...
...
@@ -1399,16 +1400,12 @@ static COORD get_console_font_size(HANDLE hConsole, DWORD index)
return
c
;
}
SERVER_START_REQ
(
get_console_output_info
)
if
(
DeviceIoControl
(
hConsole
,
IOCTL_CONDRV_GET_OUTPUT_INFO
,
NULL
,
0
,
&
info
,
sizeof
(
info
),
NULL
,
NULL
)
)
{
req
->
handle
=
console_handle_unmap
(
hConsole
);
if
(
!
wine_server_call_err
(
req
))
{
c
.
X
=
reply
->
font_width
;
c
.
Y
=
reply
->
font_height
;
}
c
.
X
=
info
.
font_width
;
c
.
Y
=
info
.
font_height
;
}
SERVER_END_REQ
;
else
SetLastError
(
ERROR_INVALID_HANDLE
)
;
return
c
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment