diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c index a04ff262b7..a985060685 100644 --- a/dlls/kernel32/console.c +++ b/dlls/kernel32/console.c @@ -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; +} + /* ==================================================================== * diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index 6fb14bbcbf..6a24e333fc 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -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