-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libwin32darkmode] NppDarkMode: Adjust tab drawing for DPI.
This uses libwin32ui's HiDPI functions. Get rid of separate X/Y DPI values. At one point, Windows supported non-square pixels (e.g. Win16 supported Hercules graphics cards), but modern Windows only supports square pixels. The old LOGPIXELSX and LOGPIXELSY values are usually equal nowadays. [libwin32ui] HiDPI.h: New inline function rp_AdjustSizeForWindow(). This basically wraps rp_AdjustSizeForDpi() by calling rp_GetDpiForWindow() to get the specified window's DPI first. TODO: - Adjust Tab Control border and edge line widths for DPI? - Verify that nothing breaks at 96dpi.
- Loading branch information
1 parent
24e0e06
commit 1416533
Showing
3 changed files
with
54 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters