Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
4925f758
Commit
4925f758
authored
Oct 29, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Nov 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement GetConsoleFontSize.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f0ee54a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
13 deletions
+28
-13
console.c
dlls/kernel32/console.c
+28
-13
No files found.
dlls/kernel32/console.c
View file @
4925f758
...
...
@@ -3265,32 +3265,47 @@ BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, LPCONSOLE_FON
return
ret
;
}
static
COORD
get_console_font_size
(
HANDLE
hConsole
,
DWORD
index
)
{
COORD
c
=
{
0
,
0
};
if
(
index
>=
GetNumberOfConsoleFonts
())
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
c
;
}
SERVER_START_REQ
(
get_console_output_info
)
{
req
->
handle
=
console_handle_unmap
(
hConsole
);
if
(
!
wine_server_call_err
(
req
))
{
c
.
X
=
reply
->
font_width
;
c
.
Y
=
reply
->
font_height
;
}
}
SERVER_END_REQ
;
return
c
;
}
#ifdef __i386__
#undef GetConsoleFontSize
DWORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
font
)
DWORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
index
)
{
union
{
COORD
c
;
DWORD
w
;
}
x
;
FIXME
(
": (%p, %d) stub!
\n
"
,
hConsole
,
font
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
x
.
c
.
X
=
0
;
x
.
c
.
Y
=
0
;
x
.
c
=
get_console_font_size
(
hConsole
,
index
);
return
x
.
w
;
}
#endif
/* defined(__i386__) */
#ifndef __i386__
COORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
font
)
COORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
index
)
{
COORD
c
;
c
.
X
=
80
;
c
.
Y
=
24
;
FIXME
(
": (%p, %d) stub!
\n
"
,
hConsole
,
font
);
return
c
;
return
get_console_font_size
(
hConsole
,
index
);
}
#endif
/* defined(__i386__) */
#endif
/*
!
defined(__i386__) */
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