kernel32: Add stubs for [G|S]etConsoleDisplayMode.
This commit is contained in:
parent
02a9b6ae2e
commit
a470c0b017
|
@ -2544,6 +2544,33 @@ BOOL WINAPI AttachConsole(DWORD dwProcessId)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* GetConsoleDisplayMode (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI GetConsoleDisplayMode(LPDWORD lpModeFlags)
|
||||
{
|
||||
TRACE("semi-stub: %p\n", lpModeFlags);
|
||||
/* It is safe to successfully report windowed mode */
|
||||
*lpModeFlags = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* SetConsoleDisplayMode (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI SetConsoleDisplayMode(HANDLE hConsoleOutput, DWORD dwFlags,
|
||||
COORD *lpNewScreenBufferDimensions)
|
||||
{
|
||||
TRACE("(%p, %x, (%d, %d))\n", hConsoleOutput, dwFlags,
|
||||
lpNewScreenBufferDimensions->X, lpNewScreenBufferDimensions->Y);
|
||||
if (dwFlags == 1)
|
||||
{
|
||||
/* We cannot switch to fullscreen */
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* ====================================================================
|
||||
*
|
||||
|
|
|
@ -457,7 +457,7 @@
|
|||
@ stub GetConsoleCommandHistoryW
|
||||
@ stdcall GetConsoleCursorInfo(long ptr)
|
||||
@ stub GetConsoleCursorMode
|
||||
@ stub GetConsoleDisplayMode
|
||||
@ stdcall GetConsoleDisplayMode(ptr)
|
||||
@ stub GetConsoleFontInfo
|
||||
@ stub GetConsoleFontSize
|
||||
@ stub GetConsoleHardwareState
|
||||
|
@ -964,7 +964,7 @@
|
|||
@ stdcall SetConsoleCursorInfo(long ptr)
|
||||
@ stub SetConsoleCursorMode
|
||||
@ stdcall SetConsoleCursorPosition(long long)
|
||||
@ stub SetConsoleDisplayMode
|
||||
@ stdcall SetConsoleDisplayMode(long long ptr)
|
||||
@ stub SetConsoleFont
|
||||
@ stub SetConsoleHardwareState
|
||||
@ stub SetConsoleIcon
|
||||
|
|
Loading…
Reference in New Issue