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
2c575634
Commit
2c575634
authored
Jan 27, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Jan 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement the TRUE pathway of GetCurrentConsoleFont.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2c6799df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
console.c
dlls/kernel32/console.c
+10
-9
No files found.
dlls/kernel32/console.c
View file @
2c575634
...
...
@@ -3267,20 +3267,21 @@ BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, LPCONSOLE_FON
memset
(
fontinfo
,
0
,
sizeof
(
CONSOLE_FONT_INFO
));
if
(
maxwindow
)
{
FIXME
(
": (%p, %d, %p) stub!
\n
"
,
hConsole
,
maxwindow
,
fontinfo
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
SERVER_START_REQ
(
get_console_output_info
)
{
req
->
handle
=
console_handle_unmap
(
hConsole
);
if
((
ret
=
!
wine_server_call_err
(
req
)))
{
fontinfo
->
dwFontSize
.
X
=
reply
->
win_right
-
reply
->
win_left
+
1
;
fontinfo
->
dwFontSize
.
Y
=
reply
->
win_bottom
-
reply
->
win_top
+
1
;
if
(
maxwindow
)
{
fontinfo
->
dwFontSize
.
X
=
min
(
reply
->
width
,
reply
->
max_width
);
fontinfo
->
dwFontSize
.
Y
=
min
(
reply
->
height
,
reply
->
max_height
);
}
else
{
fontinfo
->
dwFontSize
.
X
=
reply
->
win_right
-
reply
->
win_left
+
1
;
fontinfo
->
dwFontSize
.
Y
=
reply
->
win_bottom
-
reply
->
win_top
+
1
;
}
}
}
SERVER_END_REQ
;
...
...
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