mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Fix cairo rendering on windows under wx 3.3
This commit is contained in:
parent
58f4ca7ed6
commit
22288e02a2
@ -87,6 +87,10 @@ EDA_DRAW_PANEL_GAL::EDA_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWin
|
||||
m_stealsFocus( true ),
|
||||
m_statusPopup( nullptr )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// need to fix broken cairo rendering on Windows with wx 3.3
|
||||
SetDoubleBuffered( false );
|
||||
#endif
|
||||
m_PaintEventCounter = std::make_unique<PROF_COUNTER>( "Draw panel paint events" );
|
||||
|
||||
if( Pgm().GetCommonSettings()->m_Appearance.show_scrollbars )
|
||||
|
@ -1364,6 +1364,11 @@ CAIRO_GAL::CAIRO_GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions, wxWindow* aParent,
|
||||
m_currentTarget = TARGET_NONCACHED;
|
||||
SetTarget( TARGET_NONCACHED );
|
||||
|
||||
#ifdef _WIN32
|
||||
// need to fix broken cairo rendering on Windows with wx 3.3
|
||||
SetDoubleBuffered( false );
|
||||
#endif
|
||||
|
||||
m_bitmapBuffer = nullptr;
|
||||
m_wxOutput = nullptr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user