• Bernhard Übelacker's avatar
    notepad: Use GetDesktopWindow() when main window is not yet created. · feda1225
    Bernhard Übelacker authored
    Commit 100504d2 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
    feda1225
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...