X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0a050e347b1ece07ad5f165ba1b1d16edbeae77..f0eebb39bc6bb54441e695b3c1b1e0bea6ab5c01:/src/msw/dc.cpp?ds=sidebyside diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index 6e0ea3100b..d1ef3afda2 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -205,6 +205,8 @@ private: DECLARE_NO_COPY_CLASS(StretchBltModeChanger) }; +#if wxUSE_DYNLIB_CLASS + // helper class to cache dynamically loaded libraries and not attempt reloading // them if it fails class wxOnceOnlyDLLLoader @@ -244,6 +246,8 @@ private: static wxOnceOnlyDLLLoader wxGDI32DLL(_T("gdi32")); static wxOnceOnlyDLLLoader wxMSIMG32DLL(_T("msimg32")); +#endif // wxUSE_DYNLIB_CLASS + // =========================================================================== // implementation // =========================================================================== @@ -2673,6 +2677,8 @@ void wxDC::DoGradientFillLinear (const wxRect& rect, wxDCBase::DoGradientFillLinear(rect, initialColour, destColour, nDirection); } +#if wxUSE_DYNLIB_CLASS + static DWORD wxGetDCLayout(HDC hdc) { typedef DWORD (WINAPI *GetLayout_t)(HDC); @@ -2715,3 +2721,17 @@ void wxDC::SetLayoutDirection(wxLayoutDirection dir) pfnSetLayout(GetHdc(), layout); } + +#else // !wxUSE_DYNLIB_CLASS + +// we can't provide RTL support without dynamic loading, so stub it out +wxLayoutDirection wxDC::GetLayoutDirection() const +{ + return wxLayout_Default; +} + +void wxDC::SetLayoutDirection(wxLayoutDirection WXUNUSED(dir)) +{ +} + +#endif // wxUSE_DYNLIB_CLASS/!wxUSE_DYNLIB_CLASS