mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Dpi unaware placement bug - multimontior with same DPI settings fix (#2156)
* Dpi unaware placement bug - multimontior with same DPI settings fix * Using different enumerating method * Changed AllMonitorHaveSameDpiScaling method * Removed accidental file * small rename * Changed some methods to CamelCase * Review comments fixes
This commit is contained in:
committed by
GitHub
parent
af4678ff18
commit
dcee505f6b
@@ -31,16 +31,8 @@ struct MonitorInfo : ScreenSize
|
||||
HMONITOR handle;
|
||||
|
||||
// Returns monitor rects ordered from left to right
|
||||
static std::vector<MonitorInfo> GetMonitors(bool include_toolbar);
|
||||
static int GetMonitorsCount();
|
||||
// Return primary display
|
||||
static std::vector<MonitorInfo> GetMonitors(bool includeNonWorkingArea);
|
||||
static MonitorInfo GetPrimaryMonitor();
|
||||
// Return monitor on which hwnd window is displayed
|
||||
static MonitorInfo GetFromWindow(HWND hwnd);
|
||||
// Return monitor nearest to a point
|
||||
static MonitorInfo GetFromPoint(POINT p);
|
||||
// Return monitor info given a HMONITOR
|
||||
static MonitorInfo GetFromHandle(HMONITOR monitor);
|
||||
};
|
||||
|
||||
bool operator==(const ScreenSize& lhs, const ScreenSize& rhs);
|
||||
|
||||
Reference in New Issue
Block a user