1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-03 00:09:37 +00:00
Commit Graph

425 Commits

Author SHA1 Message Date
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
Alexandre Julliard
4e9f1a41b9 makefiles: Always use the global SOURCES variable for .man.in files. 2023-10-14 13:44:07 +02:00
Petrichor Park
100504d2f5 notepad: Use GetDpiForWindow().
Instead of querying the registry, just calls `GetDpiForWindow`.

Winecfg's DPI slider sets `Control Panel\\Desktop\\LogPixels`.
See `programs/winecfg/x11drvdlg.c`
Notepad queries `Software\\Fonts\\LogPixels`, and so doesn't pick up
on the change.
2023-07-19 10:44:51 +02:00
Alexandre Julliard
e1f1846611 notepad: Use standard va_list instead of __ms_va_list. 2023-02-20 08:39:31 +01:00
Gabriel Ivăncescu
929fdbbf55 notepad: Fix uninitialized upper 64-bits of pos in DoFind.
And get rid of the hacky casts.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2023-01-18 22:55:19 +01:00
Jacob Czekalla
377481180e notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
Jacob Czekalla
799c24aa81 notepad: Track and display line number and column. 2022-09-14 22:38:34 +02:00
Jacob Czekalla
dd3fa4e9ef notepad: Show status bar. 2022-09-14 22:38:34 +02:00
Rémi Bernon
e2f7f01ac8 notepad: Avoid using pointer value after free.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
2022-06-15 11:53:29 +02:00
Alexandre Julliard
088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Zhiyi Zhang
3c8bd7c0d0 notepad: Add system DPI awareness settings to the application manifest.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-07 10:16:50 +02:00
Zhiyi Zhang
026a6ff2be notepad: Enable visual styles.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-06-10 23:04:03 +02:00
Jacek Caban
312ea8e72c notepad: Use int for point size value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-13 22:07:32 +02:00
Alexandre Julliard
bc968469f2 notepad: Fix parsing of quoted command line.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-21 17:11:43 +02:00
Alexandre Julliard
a58f4abc08 makefiles: Allow using EXTRADLLFLAGS instead of APPMODE.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-24 11:27:39 +02:00
Alexandre Julliard
ad21554ecd notepad: Use C runtime wchar functions instead of wine/unicode.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-01 11:42:31 +02:00
Alexandre Julliard
d84de4ca00 makefiles: Support specifying installed files in the top-level makefile.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-27 14:48:04 +01:00
Michael Stefaniuc
962b31c80b include: Add a generic available ARRAY_SIZE().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-04 10:39:15 +02:00
Michael Stefaniuc
d98be23eab notepad: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-23 09:22:46 +02:00
Alexandre Julliard
d5f316bf0a makefiles: Disable binary installation in the individual makefiles on Wow64.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 14:16:33 +01:00
Austin English
b696a122ac notepad: Move WineHQ URLs to https.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 10:05:17 +01:00
Bruno Jesus
bd19402b6d notepad: Only skip valid command options.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-31 09:17:48 +01:00
Nikolay Sivov
ba5e12ae83 notepad: Make sure to use large enough buffer when composing window title (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-08 11:11:42 +09:00
Alexandre Julliard
17ac5ba7f9 makefiles: Specify whether to install program binaries in the individual makefiles.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 14:58:50 +09:00
Sebastian Lackner
8a73016819 notepad: New files should be created immediately. 2015-08-25 17:43:01 +09:00
André Hentschel
457c5f1977 notepad: Use character count for GetFileTitleW (Coverity). 2015-07-20 06:32:54 +02:00
Vincent Povirk
8e873c8afc notepad: Check IsDialogMessage before TranslateAccelerator. 2014-06-13 16:05:05 +02:00
Frédéric Delanoy
dc8b11e6f4 notepad: Use BOOL type where appropriate. 2014-02-27 09:32:57 -06:00
Alexandre Julliard
3e40fea9d6 makefiles: Automatically add the necessary msvcrt flags to the generated rules. 2014-01-08 14:34:15 +01:00
Alexandre Julliard
86b1f94d28 makefiles: Get rid of the MAKE_PROG_RULES variable. 2014-01-02 12:12:57 +01:00
Alexandre Julliard
4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Alexandre Julliard
e2df0ab856 makefiles: Generate rules from makedep for building and installing man pages. 2013-11-18 11:40:00 +01:00
Alexandre Julliard
5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Frédéric Delanoy
a282b2a753 notepad: Fix manpage formatting. 2013-07-17 20:30:49 +02:00
Alexandre Julliard
dcc97a186d Standardize the BUGS, AVAILABILITY and SEE ALSO sections across all man pages. 2013-07-16 20:48:05 +02:00
Alexandre Julliard
276306e227 notepad: Don't offer vertical fonts in the font dialog. 2013-06-25 12:39:26 +02:00
Alexandre Julliard
3f053c9149 notepad: Add a 256x256 icon. 2013-03-27 20:12:27 +01:00
Alexandre Julliard
c991d115b4 notepad: Fix the position of the Encoding combobox. 2012-03-05 17:30:29 +01:00
Alexandre Julliard
7115ef108b notepad: Use virtkeys for all accelerators. 2012-01-30 20:43:59 +01:00
Alexandre Julliard
eaa8fad52e notepad: Add message contexts for accelerators that can be translated. 2012-01-24 20:35:24 +01:00
Alexandre Julliard
c9eee73450 makefiles: Define __WINESRC__ when building programs. 2012-01-23 16:07:37 +01:00
Alexandre Julliard
da35622b83 makefiles: Disable use of Unicode macros globally for all the programs. 2012-01-20 13:14:16 +01:00
Francois Gouget
b60ff240d1 notepad: Remove unused resource strings. 2012-01-03 19:29:54 +01:00
Francois Gouget
57cf3e4f9f notepad: Don't assign access keys to group box labels or give them trailing punctuation. 2011-12-29 16:39:19 +01:00
Francois Gouget
5eec81b849 notepad: Fix a string resource so its format placeholders can be reordered. 2011-11-24 17:15:01 +01:00
Alexandre Julliard
2e2382bfdd notepad: Convert dialogs to po files. 2011-10-31 16:47:59 +01:00
Francois Gouget
801deec13c notepad: Mark the page header as not needing translation. 2011-08-25 19:09:56 +02:00
Francois Gouget
18c24345d6 notepad: Tweak an error message for consistency. 2011-08-23 17:52:46 +02:00
Francois Gouget
6990ecaafd programs: Standardize the Help menus. 2011-04-13 14:13:56 +02:00
Francois Gouget
d1b51d8502 programs: Standardize the About menus. 2011-04-12 13:08:14 +02:00