Propagate wxHtmlWindow layout direction to the wxDC it uses.
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
This commit is contained in:
parent
69e087c144
commit
88ed20a2fa
@ -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).
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user