From 82eba82658182db222b56108a2f52e59e3f0b3d1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 May 2003 00:57:51 +0000 Subject: [PATCH] fix wxDisplay initialization (patch 735303) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/display.cpp b/src/msw/display.cpp index 28cc8067b8..1fd815e37c 100644 --- a/src/msw/display.cpp +++ b/src/msw/display.cpp @@ -297,7 +297,7 @@ static void InitDisplays() gs_displays = new wxDisplayInfoArray(); - if ( gs_useDirectX && !DoInitDirectX() ) + if ( !gs_useDirectX || !DoInitDirectX() ) { // either we were told not to try to use DirectX or fall back to std // functions if DirectX method failed -- 2.45.2