modify the mothod to check monitor orientation.
This commit is contained in:
@@ -146,12 +146,22 @@ public class Monitor
|
|||||||
|
|
||||||
public bool isHorizontal
|
public bool isHorizontal
|
||||||
{
|
{
|
||||||
get { return width > height; }
|
get
|
||||||
|
{
|
||||||
|
return
|
||||||
|
(rotation == MonitorRotation.Identity) ||
|
||||||
|
(rotation == MonitorRotation.Rotate180);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isVertical
|
public bool isVertical
|
||||||
{
|
{
|
||||||
get { return height > width; }
|
get
|
||||||
|
{
|
||||||
|
return
|
||||||
|
(rotation == MonitorRotation.Rotate90) ||
|
||||||
|
(rotation == MonitorRotation.Rotate270);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool isCursorVisible
|
public bool isCursorVisible
|
||||||
|
|||||||
Reference in New Issue
Block a user