From 4ec6cba271be415f7e4b268d74f22617bc80c58a Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 15 May 2025 06:52:23 +0200 Subject: [PATCH] Correct CooperativeLevel endum --- CONFIG/detectdx5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONFIG/detectdx5.cpp b/CONFIG/detectdx5.cpp index 063bc94b..8a308a8d 100644 --- a/CONFIG/detectdx5.cpp +++ b/CONFIG/detectdx5.cpp @@ -114,7 +114,7 @@ void DetectDirectX(unsigned int* p_version, BOOL* p_found) surface_desc.dwSize = sizeof(surface_desc); surface_desc.dwFlags = DDSD_CAPS; surface_desc.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; - if (FAILED(ddraw2->SetCooperativeLevel(NULL, DISCL_BACKGROUND))) { + if (FAILED(ddraw2->SetCooperativeLevel(NULL, DDSCL_NORMAL))) { ddraw2->Release(); FreeLibrary(ddraw_module); *p_version = 0;