1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00
wine/programs
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
..
arp makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
aspnet_regiis makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
attrib makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cabarc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
cacls makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
certutil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
chcp.com makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
clock makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cmd makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
conhost makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
control makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
cscript makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
dism makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dllhost makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
dplaysvr makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dpnsvr dpnsvr: Move to GUI subsystem (as native). 2023-11-06 17:03:23 +01:00
dpvsetup makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
dxdiag makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
eject makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
expand makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
explorer explorer: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:23 +01:00
extrac32 makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
fc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
find makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
findstr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
fsutil fsutil/tests: Use CRT allocation functions. 2023-11-02 10:15:14 +01:00
hh makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
hostname makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
icacls makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
icinfo makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
iexplore makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
ipconfig makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
klist makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
lodctr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
mofcomp makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
mshta mshta: No longer use console / crt API. 2023-11-10 20:52:29 +01:00
msidb makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
msiexec msiexec: Use CRT allocation functions. 2023-11-07 11:03:13 +01:00
msinfo32 makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
net makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
netsh makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
netstat makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
ngen ngen: Add version resource. 2022-10-11 18:40:37 +02:00
notepad notepad: Use GetDesktopWindow() when main window is not yet created. 2023-11-20 22:46:44 +01:00
oleview makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
ping makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
plugplay makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
pnputil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
powershell makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
presentationfontcache makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
progman makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
reg makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regasm makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regedit makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regini makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regsvcs makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
regsvr32 makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
robocopy makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
rpcss makefiles: Always use the global SOURCES variable for .idl files. 2023-11-01 22:43:50 +01:00
rundll.exe16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
rundll32 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
sc makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
schtasks makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
sdbinst makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
secedit makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
servicemodelreg makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
services services: Move to GUI subsystem (as native). 2023-11-06 17:03:30 +01:00
setx makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
shutdown makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
spoolsv spoolsv: Move to GUI subsystem (as native). 2023-11-06 17:03:26 +01:00
start makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
subst makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
svchost svchost: Move to GUI subsystem (as native). 2023-11-06 17:03:28 +01:00
systeminfo makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
taskkill makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
tasklist makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
taskmgr taskmgr: No longer use console/file output APIs. 2023-11-10 20:52:29 +01:00
termsv makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
uninstaller makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
unlodctr makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
view makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wevtutil makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
where makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
whoami makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
wineboot makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winebrowser winebrowser: Remove misleading comment. 2023-11-10 20:52:29 +01:00
winecfg winecfg: Mention protocol associations. 2023-11-06 17:58:30 +01:00
wineconsole makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winedbg dbghelp: Pretend mach-o is present in case of failure. 2023-11-16 20:56:07 +01:00
winedevice makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winefile makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winemenubuilder winemenubuilder: Create .desktop files for programs that open URIs. 2023-11-06 17:49:56 +01:00
winemine makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winemsibuilder makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winepath makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
winetest makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
winevdm winevdm: Don't claim that 16-bit apps are DPI aware. 2023-11-09 23:00:40 +01:00
winhelp.exe16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winhlp32 makefiles: Always use the global SOURCES variable for .svg files. 2023-10-14 13:47:59 +02:00
winmgmt makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winoldap.mod16 makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
winver makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wmic makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wmplayer makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wordpad wordpad: Remove unneeded output messages. 2023-11-10 20:52:29 +01:00
write makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wscript makefiles: Always use the global SOURCES variable for .rc files. 2023-11-01 22:43:56 +01:00
wuauserv makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00
wusa wusa: Remove DECLSPEC_HIDDEN usage. 2023-11-20 17:55:39 +01:00
xcopy makefiles: Always use the global SOURCES variable for .c files. 2023-11-01 22:44:03 +01:00