1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00
wine/programs/notepad
Bernhard Übelacker feda122578 notepad: Use GetDesktopWindow() when main window is not yet created.
Commit 100504d2f5 introduced using GetDpiForWindow().
Unfortunately NOTEPAD_LoadSettingFromRegistry is executed when
the main window is not yet created, resulting in
having Globals.lfFont.lfHeight=0.
This is later stored in the registry in iPointSize=0.

In a fresh wine prefix there are not yet registry values created,
therefore the first run of notepad does not show this problem,
and iPointSize is saved with a sane value to the registry.

Having Globals.lfFont.lfHeight=0 manifests for example
in cups PDF prints being a single empty page.

The check of point_size for having a non-zero value should also fix
wine prefixes which have already a stored registry value of iPointSize=0.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55852
2023-11-20 22:46:44 +01:00
..
dialog.c notepad: Use GetDpiForWindow(). 2023-07-19 10:44:51 +02:00
dialog.h notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
main.c notepad: Use GetDesktopWindow() when main window is not yet created. 2023-11-20 22:46:44 +01:00
main.h notepad: Use GetDpiForWindow(). 2023-07-19 10:44:51 +02:00
Makefile.in makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
notepad_res.h notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
notepad.ico
notepad.man.in notepad: Move WineHQ URLs to https. 2017-12-01 10:05:17 +01:00
notepad.manifest notepad: Add system DPI awareness settings to the application manifest. 2021-09-07 10:16:50 +02:00
notepad.rc notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
notepad.svg