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
53d73559
Commit
53d73559
authored
Aug 20, 2012
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Aug 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add GetConsoleFontSize stub.
parent
71d3d4f1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
2 deletions
+44
-2
console.c
dlls/kernel32/console.c
+29
-0
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
wincon.h
include/wincon.h
+14
-1
No files found.
dlls/kernel32/console.c
View file @
53d73559
...
...
@@ -3230,5 +3230,34 @@ BOOL WINAPI GetCurrentConsoleFont(HANDLE hConsole, BOOL maxwindow, LPCONSOLE_FON
FIXME
(
": (%p, %d, %p) stub!
\n
"
,
hConsole
,
maxwindow
,
fontinfo
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
#ifdef __i386__
#undef GetConsoleFontSize
DWORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
font
)
{
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
;
return
x
.
w
;
}
#endif
/* defined(__i386__) */
#ifndef __i386__
COORD
WINAPI
GetConsoleFontSize
(
HANDLE
hConsole
,
DWORD
font
)
{
COORD
c
;
c
.
X
=
80
;
c
.
Y
=
24
;
FIXME
(
": (%p, %d) stub!
\n
"
,
hConsole
,
font
);
return
c
;
}
#endif
/* defined(__i386__) */
dlls/kernel32/kernel32.spec
View file @
53d73559
...
...
@@ -475,7 +475,7 @@
@ stub GetConsoleCursorMode
@ stdcall GetConsoleDisplayMode(ptr)
@ stub GetConsoleFontInfo
@ st
ub GetConsoleFontSize
@ st
dcall GetConsoleFontSize(long long)
@ stub GetConsoleHardwareState
@ stdcall GetConsoleInputExeNameA(long ptr)
@ stdcall GetConsoleInputExeNameW(long ptr)
...
...
include/wincon.h
View file @
53d73559
...
...
@@ -268,8 +268,21 @@ typedef struct tagINPUT_RECORD
#ifdef __i386__
/* Note: this should return a COORD, but calling convention for returning
* structures is different between Windows and gcc on i386. */
WINBASEAPI
DWORD
WINAPI
GetConsoleFontSize
(
HANDLE
,
DWORD
);
WINBASEAPI
DWORD
WINAPI
GetLargestConsoleWindowSize
(
HANDLE
);
static
inline
COORD
__wine_GetConsoleFontSize_wrapper
(
HANDLE
h
,
DWORD
d
)
{
union
{
COORD
c
;
DWORD
dw
;
}
u
;
u
.
dw
=
GetConsoleFontSize
(
h
,
d
);
return
u
.
c
;
}
#define GetConsoleFontSize(h, d) __wine_GetConsoleFontSize_wrapper(h, d)
static
inline
COORD
__wine_GetLargestConsoleWindowSize_wrapper
(
HANDLE
h
)
{
union
{
...
...
@@ -282,6 +295,7 @@ static inline COORD __wine_GetLargestConsoleWindowSize_wrapper(HANDLE h)
#define GetLargestConsoleWindowSize(h) __wine_GetLargestConsoleWindowSize_wrapper(h)
#else
/* __i386__ */
WINBASEAPI
COORD
WINAPI
GetConsoleFontSize
(
HANDLE
,
DWORD
);
WINBASEAPI
COORD
WINAPI
GetLargestConsoleWindowSize
(
HANDLE
);
#endif
/* __i386__ */
...
...
@@ -316,7 +330,6 @@ WINBASEAPI DWORD WINAPI GetConsoleAliasExesLengthW(VOID);
WINBASEAPI
UINT
WINAPI
GetConsoleCP
(
VOID
);
WINBASEAPI
BOOL
WINAPI
GetConsoleCursorInfo
(
HANDLE
,
LPCONSOLE_CURSOR_INFO
);
WINBASEAPI
BOOL
WINAPI
GetConsoleDisplayMode
(
LPDWORD
);
WINBASEAPI
COORD
WINAPI
GetConsoleFontSize
(
HANDLE
,
DWORD
);
WINBASEAPI
BOOL
WINAPI
GetConsoleHistoryInfo
(
LPCONSOLE_HISTORY_INFO
);
WINBASEAPI
BOOL
WINAPI
GetConsoleInputExeNameA
(
DWORD
,
LPSTR
);
WINBASEAPI
BOOL
WINAPI
GetConsoleInputExeNameW
(
DWORD
,
LPWSTR
);
...
...
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