Skip to content

Commit

Permalink
WIN32 doesn't work, episode 73.
Browse files Browse the repository at this point in the history
  • Loading branch information
FLAK-ZOSO committed Jun 19, 2023
1 parent 6cd646a commit a7b583a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fullkning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#include <chrono>
#include <thread>
#include <future>
#ifdef _WIN32
#include <windows.h>
#endif
#ifdef _WIN32
#include <conio.h>
#elif __APPLE__
Expand Down Expand Up @@ -275,6 +278,18 @@ inline void changeBlockType() {
}

int main(int argc, char* argv[]) {
#ifdef _WIN32
CONSOLE_FONT_INFOEX font_info;
font_info.cbSize = sizeof(font_info);
font_info.dwFontSize.X = 31;
font_info.dwFontSize.Y = 11;
font_info.FontFamily = FF_DONTCARE;
font_info.FontWeight = FW_NORMAL;
SetCurrentConsoleFontEx(
GetStdHandle(STD_OUTPUT_HANDLE),
false, &font_info
);
#endif
#ifdef __APPLE__
term_echooff();
#endif
Expand Down
Binary file modified fullkning.exe
Binary file not shown.

0 comments on commit a7b583a

Please sign in to comment.