]> git.saurik.com Git - wxWidgets.git/commitdiff
Propagate wxHtmlWindow layout direction to the wxDC it uses.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Jul 2010 23:33:23 +0000 (23:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Jul 2010 23:33:23 +0000 (23:33 +0000)
While wxHtmlWindow doesn't support mixing LTR and RTL contents we can indeed
try to make it render pure RTL stuff correctly by setting up the wxDC used for
drawing accordingly.

Closes #1988.

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

docs/changes.txt
src/html/htmlwin.cpp

index 971993ede026fc4ea06b420dbafeb7da33b407d8..44966c27d33dfbf7d140641d8f8a4c0c18846c3f 100644 (file)
@@ -411,6 +411,7 @@ MSW:
 All (GUI):
 
 - wxAUI: support auto-orientable toolbars (wsu).
+- wxHTML: render in RTL order inside RTL window (Richard Bullington-McGuire).
 - Add support for CP-866 encoding to wxEncodingConverter (madnut).
 
 
index a19f7c4206922a3285f5f418ff8e0f76849a15a5..ceb2fac7c8e39ee8ae24d9cfbb753980ab1c76f9 100644 (file)
@@ -1149,6 +1149,7 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
     // draw the HTML window contents
     dc->SetMapMode(wxMM_TEXT);
     dc->SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
+    dc->SetLayoutDirection(GetLayoutDirection());
 
     wxHtmlRenderingInfo rinfo;
     wxDefaultHtmlRenderingStyle rstyle;