Skip to content

Commit b1aeb10

Browse files
committed
Update CHANGELOG.md
1 parent f06225e commit b1aeb10

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
- Fix rendering lag caused by excessively long lines by truncating and sanitizing them in text viewer
9292
- Fix twice space after Alt+Tab to explorer window [#1939](https://github.com/QL-Win/QuickLook/issues/1939)
9393
- Fix FontViewer preview width sizing
94+
- Fix Per-Monitor DPI awareness and support Per-Monitor V2 [#1988](https://github.com/QL-Win/QuickLook/pull/1988)
9495

9596
## 4.5.0
9697

‎QuickLook/NativeMethods/SHCore.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ public enum PROCESS_DPI_AWARENESS
2525
{
2626
PROCESS_DPI_UNAWARE,
2727
PROCESS_SYSTEM_DPI_AWARE,
28-
PROCESS_PER_MONITOR_DPI_AWARE
28+
PROCESS_PER_MONITOR_DPI_AWARE,
2929
}
3030

31+
[DllImport("shcore.dll")]
32+
public static extern uint SetProcessDpiAwareness(PROCESS_DPI_AWARENESS awareness);
33+
3134
/// <summary>
3235
/// Gets the DPI awareness of a process. Pass <c>0</c> for the current process.
3336
/// Requires Windows 8.1 or later.

‎QuickLook/NativeMethods/User32.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public enum MessageBoxResult : int
7070
IDYES = 6,
7171
IDNO = 7,
7272
IDTRYAGAIN = 10,
73-
IDCONTINUE = 11
73+
IDCONTINUE = 11,
7474
}
7575

7676
public enum DPI_AWARENESS_CONTEXT

0 commit comments

Comments
 (0)