mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
GAL: Lock context when triggering resize
This action adjusts the compositor, so it must have exclusive access to the context.
This commit is contained in:
parent
a7672716f8
commit
bf164f7c4b
@ -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…
Reference in New Issue
Block a user