fancyzones: restrict dpi unaware windows horizontally to the current display to avoid unwanted resize

This commit is contained in:
yuyoyuppe
2019-12-17 12:34:45 +03:00
committed by yuyoyuppe
parent 0fd0a8b7cc
commit 48b89609e2
3 changed files with 27 additions and 11 deletions

View File

@@ -10,7 +10,7 @@ namespace DPIAware
void Convert(HMONITOR monitor_handle, int& width, int& height);
void EnableDPIAwarenessForThisProcess();
enum AWARENESS_LEVEL
enum AwarnessLevel
{
UNAWARE,
SYSTEM_AWARE,
@@ -18,5 +18,5 @@ namespace DPIAware
PER_MONITOR_AWARE_V2,
UNAWARE_GDISCALED
};
AWARENESS_LEVEL GetAwarenessLevel(DPI_AWARENESS_CONTEXT system_returned_value);
AwarnessLevel GetAwarenessLevel(DPI_AWARENESS_CONTEXT system_returned_value);
};