mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add simple checks against invalid window position.
This commit is contained in:
parent
3a8abdf9c1
commit
ecdb672130
@ -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" );
|
||||||
|
Loading…
Reference in New Issue
Block a user