More RTL fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1286,10 +1286,7 @@ template<typename T> void InitMouseEvent(wxWindowGTK *win,
|
||||
if ((win->m_wxwindow) && (win->GetLayoutDirection() == wxLayout_RightToLeft))
|
||||
{
|
||||
// origin in the upper right corner
|
||||
int virtual_width = win->GetVirtualSize().x;
|
||||
int window_width = gtk_pizza_get_rtl_offset( GTK_PIZZA(win->m_wxwindow) );
|
||||
//wxPrintf( wxT("event.m_x %d virtual_width %d window_width %d m_xoffset %d\n"),
|
||||
// event.m_x, virtual_width, window_width, GTK_PIZZA(win->m_wxwindow)->m_xoffset );
|
||||
event.m_x = window_width - event.m_x;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user