Browse Source

GAL: Lock context when triggering resize

This action adjusts the compositor, so it must have exclusive access to
the context.
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
bf164f7c4b
  1. 1
      common/draw_panel_gal.cpp

1
common/draw_panel_gal.cpp

@ -242,6 +242,7 @@ void EDA_DRAW_PANEL_GAL::onPaint( wxPaintEvent& WXUNUSED( aEvent ) )
void EDA_DRAW_PANEL_GAL::onSize( wxSizeEvent& aEvent )
{
KIGFX::GAL_CONTEXT_LOCKER locker( m_gal );
wxSize clientSize = GetClientSize();
m_gal->ResizeScreen( clientSize.x, clientSize.y );

Loading…
Cancel
Save