mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
try fix #225
This commit is contained in:
parent
7ba5701147
commit
e5f28d6d31
@ -16,6 +16,13 @@ namespace VPet_Simulator.Windows
|
||||
this.mw = mw;
|
||||
_isPrimaryScreen = mw.Set.MoveAreaDefault;
|
||||
_screenBorder = mw.Set.MoveArea;
|
||||
|
||||
// control position inside bounds
|
||||
double dist;
|
||||
if ((dist = GetWindowsDistanceLeft()) < 0) mw.Left -= dist;
|
||||
if ((dist = GetWindowsDistanceRight()) < 0) mw.Left += dist;
|
||||
if ((dist = GetWindowsDistanceUp()) < 0) mw.Top -= dist;
|
||||
if ((dist = GetWindowsDistanceDown()) < 0) mw.Top += dist;
|
||||
}
|
||||
|
||||
private Rectangle _screenBorder;
|
||||
|
Loading…
x
Reference in New Issue
Block a user