Add simple checks against invalid window position.

This commit is contained in:
Bartosz Taudul 2019-02-10 02:11:59 +01:00
parent 3a8abdf9c1
commit ecdb672130

View File

@ -108,6 +108,14 @@ int main( int argc, char** argv )
h = data[3]; h = data[3];
maximize = data[4]; maximize = data[4];
} }
if( w <= 0 || h <= 0 || x+w < 0 || y+h < 0 )
{
x = 200;
y = 200;
w = 1650;
h = 960;
maximize = 0;
}
} }
std::string connHistFile = tracy::GetSavePath( "connection.history" ); std::string connHistFile = tracy::GetSavePath( "connection.history" );