Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Detach from console upon start to close the console window. Should fi…
Browse files Browse the repository at this point in the history
…gure out how to properly build for windows subsystem.
  • Loading branch information
Timur Sultanov committed Mar 14, 2020
1 parent 64a7ec5 commit 6edf8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn registerClass(hInstance: w.HINSTANCE, className: w.LPCWSTR) void {

pub export fn WinMain(hInstance: w.HINSTANCE, hPrevInstance: w.HINSTANCE, pCmdLine: w.LPWSTR, nCmdShow: c_int) callconv(.C) c_int {
globalHInstance = hInstance;
_ = w.AllocConsole();
_ = w.FreeConsole();

//Create invisible window just for message loop
comptime var className: w.LPCWSTR = Window.toUtf16("MosaicSwitcher") catch unreachable;
Expand Down

0 comments on commit 6edf8be

Please sign in to comment.