]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't call ::GetLayout() in wxMSW code directly.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 11:11:53 +0000 (11:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 11:11:53 +0000 (11:11 +0000)
Use wxMSW::GetLayout() wrapper to avoid directly binding to a function not
present in old Windows versions and also to fix linking errors with MinGW
after the changes of r73484.

See #3995.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 494561562484bfa98f3f095003329cf0d75dfde7..b828f025e1bcc2f417ee915aee16dee15dfb9fda 100644 (file)
@@ -2883,7 +2883,7 @@ void wxMSWDCImpl::SetLayoutDirection(wxLayoutDirection dir)
             return;
     }
 
-    DWORD layout = GetLayout(GetHdc());
+    DWORD layout = wxMSW::GetLayout(GetHdc());
     if ( layout == GDI_ERROR )
         return;