Fixed changing ScreenHeight

This commit is contained in:
Quajak 2020-05-10 17:37:52 +02:00 committed by GitHub
parent f97c907f3e
commit 9683bac713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,9 +96,9 @@ namespace Cosmos.System
{
mScreenHeight = value;
if (X >= mScreenHeight)
if (Y >= mScreenHeight)
{
X = mScreenHeight - 1;
Y = mScreenHeight - 1;
}
}
}