try to disable composition on Vista
git-svn-id: svn://svn.icculus.org/netradiant/trunk@311 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
04f25ce1f9
commit
4bff5a2e20
|
|
@ -558,6 +558,18 @@ int main (int argc, char* argv[])
|
||||||
|
|
||||||
streams_init();
|
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_disable_setlocale();
|
||||||
gtk_init(&argc, &argv);
|
gtk_init(&argc, &argv);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user