Skip to content

Commit

Permalink
Fix undef symbol __imp_ShowWindow on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
eric15342335 committed Jun 17, 2024
1 parent 794cc94 commit 25d463d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ void enableWindowsVTProcessing(void) {
std::cout << "Experimental Windows VT processing enabled.\n";
}
void maximizeTerminalScreen_win10(void) {
#ifdef _MSC_VER
#pragma comment(lib, "user32.lib")
#endif
/** @note Windows 11 needs to set the default terminal application to Conhost
* to maximize the terminal screen.
* Terminal -> Settings -> Default Terminal Application -> Conhost
Expand Down

0 comments on commit 25d463d

Please sign in to comment.