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
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.ico
notepad.man.in
notepad.manifest
notepad.rc
notepad.svg
notepad_res.h