X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f29cfd7775c13ca8f59361624b1d2a35397e125b..4105cbfb059664fb51a8f5e4c76824971c5e9b65:/src/msw/display.cpp?ds=sidebyside diff --git a/src/msw/display.cpp b/src/msw/display.cpp index 2758483bba..86f353b6d8 100644 --- a/src/msw/display.cpp +++ b/src/msw/display.cpp @@ -5,7 +5,7 @@ // Modified by: VZ (resolutions enumeration/change support, DirectDraw, ...) // Created: 06/21/02 // RCS-ID: $Id$ -// Copyright: (c) wxWindows team +// Copyright: (c) wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -242,12 +242,16 @@ HRESULT WINAPI wxDDEnumModesCallback(LPDDSURFACEDESC lpDDSurfaceDesc, // initialize gs_displays using DirectX functions static bool DoInitDirectX() { +#if wxUSE_LOG // suppress the errors if ddraw.dll is not found wxLog::EnableLogging(false); +#endif wxDynamicLibrary dllDX(_T("ddraw.dll")); - wxLog::EnableLogging(true); +#if wxUSE_LOG + wxLog::EnableLogging(); +#endif if ( !dllDX.IsLoaded() ) return false;