Fix graphics rendering on RTL systems (lp:1559545)
wx mirrors graphics by default on RTL systems; it is necessary to individually set graphics canvases to LTR mode to avoid this.
This commit is contained in:
parent
f3ee0b8252
commit
bb9f1b00cd
|
@ -103,6 +103,8 @@ EDA_DRAW_PANEL::EDA_DRAW_PANEL( EDA_DRAW_FRAME* parent, int id,
|
||||||
m_scrollIncrementX = std::min( size.x / 8, 10 );
|
m_scrollIncrementX = std::min( size.x / 8, 10 );
|
||||||
m_scrollIncrementY = std::min( size.y / 8, 10 );
|
m_scrollIncrementY = std::min( size.y / 8, 10 );
|
||||||
|
|
||||||
|
SetLayoutDirection( wxLayout_LeftToRight );
|
||||||
|
|
||||||
SetBackgroundColour( MakeColour( parent->GetDrawBgColor() ) );
|
SetBackgroundColour( MakeColour( parent->GetDrawBgColor() ) );
|
||||||
|
|
||||||
#if KICAD_USE_BUFFERED_DC || KICAD_USE_BUFFERED_PAINTDC
|
#if KICAD_USE_BUFFERED_DC || KICAD_USE_BUFFERED_PAINTDC
|
||||||
|
|
|
@ -62,6 +62,8 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
|
||||||
m_eventDispatcher = NULL;
|
m_eventDispatcher = NULL;
|
||||||
m_lostFocus = false;
|
m_lostFocus = false;
|
||||||
|
|
||||||
|
SetLayoutDirection( wxLayout_LeftToRight );
|
||||||
|
|
||||||
SwitchBackend( aGalType );
|
SwitchBackend( aGalType );
|
||||||
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
|
||||||
ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS );
|
ShowScrollbars( wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS );
|
||||||
|
|
|
@ -32,6 +32,7 @@ HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle,
|
||||||
wxPoint aPos, wxSize aSize) :
|
wxPoint aPos, wxSize aSize) :
|
||||||
DIALOG_DISPLAY_HTML_TEXT_BASE( parent, wxID_ANY, aTitle, aPos, aSize )
|
DIALOG_DISPLAY_HTML_TEXT_BASE( parent, wxID_ANY, aTitle, aPos, aSize )
|
||||||
{
|
{
|
||||||
|
m_htmlWindow->SetLayoutDirection( wxLayout_LeftToRight );
|
||||||
ListClear();
|
ListClear();
|
||||||
Center();
|
Center();
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( SCH_BASE_FRAME* aParent, const
|
||||||
m_search_container->SetTree( m_libraryComponentTree );
|
m_search_container->SetTree( m_libraryComponentTree );
|
||||||
m_searchBox->SetFocus();
|
m_searchBox->SetFocus();
|
||||||
m_componentDetails->SetEditable( false );
|
m_componentDetails->SetEditable( false );
|
||||||
|
m_componentView->SetLayoutDirection( wxLayout_LeftToRight );
|
||||||
|
|
||||||
m_libraryComponentTree->ScrollTo( m_libraryComponentTree->GetFocusedItem() );
|
m_libraryComponentTree->ScrollTo( m_libraryComponentTree->GetFocusedItem() );
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,9 @@ DIALOG_RESCUE_EACH::DIALOG_RESCUE_EACH( SCH_EDIT_FRAME* aParent, RESCUER& aRescu
|
||||||
"\n"
|
"\n"
|
||||||
"The following changes are recommended to update the project." );
|
"The following changes are recommended to update the project." );
|
||||||
m_lblInfo->SetLabel( info_message );
|
m_lblInfo->SetLabel( info_message );
|
||||||
|
|
||||||
|
m_componentViewOld->SetLayoutDirection( wxLayout_LeftToRight );
|
||||||
|
m_componentViewNew->SetLayoutDirection( wxLayout_RightToLeft );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue