modify the mothod to check monitor orientation.

This commit is contained in:
hecomi
2016-11-26 18:11:02 +09:00
parent c48bf7fecf
commit f2b6a99af3
+12 -2
View File
@@ -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