Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b4516a2f
Commit
b4516a2f
authored
Oct 18, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineconsole: Set the correct font height even when no registry data is present.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c970b263
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
registry.c
programs/wineconsole/registry.c
+1
-1
user.c
programs/wineconsole/user.c
+1
-0
No files found.
programs/wineconsole/registry.c
View file @
b4516a2f
...
...
@@ -211,7 +211,7 @@ void WINECON_RegLoad(const WCHAR* appname, struct config_data* cfg)
cfg
->
cursor_visible
=
1
;
cfg
->
exit_on_die
=
1
;
memset
(
cfg
->
face_name
,
0
,
sizeof
(
cfg
->
face_name
));
cfg
->
cell_height
=
MulDiv
(
1
2
,
GetDpiForSystem
(),
USER_DEFAULT_SCREEN_DPI
);
cfg
->
cell_height
=
MulDiv
(
1
6
,
GetDpiForSystem
(),
USER_DEFAULT_SCREEN_DPI
);
cfg
->
cell_width
=
MulDiv
(
8
,
GetDpiForSystem
(),
USER_DEFAULT_SCREEN_DPI
);
cfg
->
font_weight
=
FW_NORMAL
;
cfg
->
history_size
=
50
;
...
...
programs/wineconsole/user.c
View file @
b4516a2f
...
...
@@ -403,6 +403,7 @@ static int CALLBACK get_first_font_enum_2(const LOGFONTW* lf, const TEXTMETRICW*
*/
mlf
.
lfWidth
=
fc
->
data
->
curcfg
.
cell_width
;
mlf
.
lfHeight
=
fc
->
data
->
curcfg
.
cell_height
;
if
(
!
mlf
.
lfHeight
)
mlf
.
lfHeight
=
MulDiv
(
16
,
GetDpiForSystem
(),
USER_DEFAULT_SCREEN_DPI
);
if
(
WCUSER_SetFont
(
fc
->
data
,
&
mlf
))
{
struct
config_data
defcfg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment