More RTL fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,6 +190,10 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
|
||||
GtkWidget *button = GetButtonWidget();
|
||||
|
||||
int x_diff = 0;
|
||||
if (win->GetLayoutDirection() == wxLayout_RightToLeft)
|
||||
x_diff = rect.width;
|
||||
|
||||
gtk_paint_box
|
||||
(
|
||||
button->style,
|
||||
@@ -201,7 +205,7 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
NULL,
|
||||
button,
|
||||
"button",
|
||||
dc.LogicalToDeviceX(rect.x), rect.y, rect.width, rect.height
|
||||
dc.LogicalToDeviceX(rect.x) - x_diff, rect.y, rect.width, rect.height
|
||||
);
|
||||
|
||||
DrawHeaderButtonContents(win, dc, rect, flags, params);
|
||||
|
||||
Reference in New Issue
Block a user