]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/main.cpp
add more vertexes to the entity display to make it more visible (paint an X in its...
[xonotic/netradiant.git] / radiant / main.cpp
index 4252ea225782dde17d5c5f58864d2e3ed43e86b2..15baa3c048323a3fbee78992a77bb543d96138d1 100644 (file)
@@ -89,6 +89,10 @@ DefaultAllocator - Memory allocation using new/delete, compliant with std::alloc
 #include "referencecache.h"
 #include "stacktrace.h"
 
+#ifdef WIN32
+#include <windows.h>
+#endif
+
 void show_splash();
 void hide_splash();
 
@@ -558,6 +562,18 @@ int main (int argc, char* argv[])
 
   streams_init();
 
+#ifdef WIN32
+  HMODULE lib;
+  lib = LoadLibrary("dwmapi.dll");
+  if(lib != 0)
+  {
+         void (WINAPI *DwmEnableComposition) (bool bEnable) = (void (WINAPI *) (bool bEnable)) GetProcAddress(lib, "DwmEnableComposition");
+         if(DwmEnableComposition)
+                 DwmEnableComposition(FALSE);
+         FreeLibrary(lib);
+  }
+#endif
+
   gtk_disable_setlocale();
   gtk_init(&argc, &argv);