]> git.saurik.com Git - wxWidgets.git/commitdiff
wxDisplay build fix for missing Direct Draw.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 16 Mar 2006 11:06:10 +0000 (11:06 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 16 Mar 2006 11:06:10 +0000 (11:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/display.cpp

index ac0dc4c61293f9dcc7ec82ca7392b440f2acc560..639737d549aa458046480b7fd8351106a2d974fd 100644 (file)
@@ -375,6 +375,8 @@ private:
     // we have 2 implementations for modern Windows: one using standard Win32
     // and another using DirectDraw, the choice between them is done using a
     // system option
+
+#ifdef wxUSE_DIRECTDRAW
     if ( wxSystemOptions::GetOptionInt(_T("msw.display.directdraw")) )
     {
         wxDisplayFactoryDirectDraw *factoryDD = new wxDisplayFactoryDirectDraw;
@@ -383,6 +385,7 @@ private:
 
         delete factoryDD;
     }
+#endif // wxUSE_DIRECTDRAW
 
     wxDisplayFactoryMultimon *factoryMM = new wxDisplayFactoryMultimon;
     if ( factoryMM->IsOk() )