conhost: Reimplement font dialog handling.
commitda854c537d887fd275b71153a67cf5c43a27cd58
authorHugh McMaster <hugh.mcmaster@outlook.com>
Thu, 3 Mar 2022 11:37:05 +0000 (3 22:37 +1100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 11 Mar 2022 20:42:43 +0000 (11 21:42 +0100)
treef5472f7433f6a58b3424da4701ca6d30a48e3b14
parent50b6b72d305758e5adfb936dda912e2d2cb3496f
conhost: Reimplement font dialog handling.

Much of the existing font dialog code is overly complicated and difficult
to follow. There are also bugs in the code, which cannot be fixed with
minimal changes due to the complexity of the existing source. For example,
changing the font face via the listbox unexpectedly changes the font size.
It is also unnecessary to recreate the list of available font sizes
each font face selection if the font type remains unchanged.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/conhost/window.c