sources/main.cpp

changeset 89
777b2a10b835
parent 88
08ccaf26cffd
child 93
1ea012a6e1ec
--- a/sources/main.cpp	Thu Jul 23 01:52:04 2015 +0300
+++ b/sources/main.cpp	Thu Jul 23 02:15:21 2015 +0300
@@ -46,7 +46,10 @@
 int main (int argc, char* argv[])
 {
 #ifdef _WIN32
+# ifdef HAVE_PDCURSES_WIN32A
+	// PDCurses-win32a uses a GUI window of its own so we need to destroy the console window.
 	FreeConsole();
+# endif
 
 	WSADATA wsaData;
 	int result = WSAStartup (MAKEWORD (2, 2), &wsaData);

mercurial