more fix for Cairo setting screen size.
This commit is contained in:
parent
d3c7b45438
commit
785638a396
|
@ -300,6 +300,9 @@ void CAIRO_GAL::DrawCurve( const VECTOR2D& aStartPoint, const VECTOR2D& aControl
|
|||
|
||||
void CAIRO_GAL::ResizeScreen( int aWidth, int aHeight )
|
||||
{
|
||||
SetSize( wxSize( aWidth, aHeight ) );
|
||||
screenSize = m_parent->GetClientSize(); // use client size to subtract scrollbars size
|
||||
|
||||
// Recreate the bitmaps
|
||||
deleteBitmaps();
|
||||
allocateBitmaps();
|
||||
|
@ -308,9 +311,6 @@ void CAIRO_GAL::ResizeScreen( int aWidth, int aHeight )
|
|||
compositor->Resize( aWidth, aHeight );
|
||||
|
||||
validCompositor = false;
|
||||
|
||||
SetSize( wxSize( aWidth, aHeight ) );
|
||||
screenSize = m_parent->GetClientSize(); // use client size to subtract scrollbars size
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue