more fix for Cairo setting screen size.

This commit is contained in:
Maciej Suminski 2015-06-30 15:06:30 +02:00
parent d3c7b45438
commit 785638a396
1 changed files with 3 additions and 3 deletions

View File

@ -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
}