From 9683bac713d6e32ccf1d8d5b1e479126506f4fd3 Mon Sep 17 00:00:00 2001 From: Quajak Date: Sun, 10 May 2020 17:37:52 +0200 Subject: [PATCH] Fixed changing ScreenHeight --- source/Cosmos.System2/MouseManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Cosmos.System2/MouseManager.cs b/source/Cosmos.System2/MouseManager.cs index cb5c3b1a7..e0572cd30 100644 --- a/source/Cosmos.System2/MouseManager.cs +++ b/source/Cosmos.System2/MouseManager.cs @@ -96,9 +96,9 @@ namespace Cosmos.System { mScreenHeight = value; - if (X >= mScreenHeight) + if (Y >= mScreenHeight) { - X = mScreenHeight - 1; + Y = mScreenHeight - 1; } } }