]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
convert lightmaps to sRGB for nice sRGB support
[xonotic/darkplaces.git] / sys_win.c
index 2ed54abcac1775b6c784e4780cb62c7918d6a511..3b48f18d0eebfe9ba0af6f9e7d92af02d85a1786 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -19,16 +19,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // sys_win.c -- Win32 system interface code
 
-#include "quakedef.h"
 #include <windows.h>
 #include <mmsystem.h>
+#include <direct.h>
 #ifdef SUPPORTDIRECTX
 #include <dsound.h>
 #endif
+
+#include "qtypes.h"
+
+#include "quakedef.h"
 #include "errno.h"
 #include "resource.h"
 #include "conproc.h"
-#include "direct.h"
 
 HANDLE                         hinput, houtput;
 
@@ -355,6 +358,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                }
        }
 
+       Sys_ProvideSelfFD();
+
        Host_Main();
 
        /* return success of application */