Fix a compil issue: Try a better fix than commit 8f0449c.

This commit is contained in:
jean-pierre charras 2020-04-18 12:36:05 +02:00
parent 98b9c80eb4
commit 56c31e65f6
1 changed files with 3 additions and 1 deletions

View File

@ -360,7 +360,9 @@ void EDA_BASE_FRAME::LoadWindowSettings( WINDOW_SETTINGS* aCfg )
wxLogTrace( traceDisplayLocation, "Previous display not found" );
// If it isn't attached, use the first display
wxDisplay display( int( 0 ) );
// Warning wxDisplay has 2 ctor variants. the parameter needs a type:
const unsigned int index = 0;
wxDisplay display( index );
wxRect clientSize = display.GetClientArea();
wxLogDebug( "Client size (%d, %d)", clientSize.width, clientSize.height );