Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
6e8519b1
Commit
6e8519b1
authored
Dec 18, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Dec 18, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for the dialog font size to be set directly in pixels.
parent
cc3e0c5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
dialog.c
windows/dialog.c
+10
-4
No files found.
windows/dialog.c
View file @
6e8519b1
...
...
@@ -735,10 +735,16 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate,
/* The font height must be negative as it is a point size */
/* and must be converted to pixels first */
/* (see CreateFont() documentation in the Windows SDK). */
HDC
dc
=
GetDC
(
0
);
int
pixels
=
template
.
pointSize
*
GetDeviceCaps
(
dc
,
LOGPIXELSY
)
/
72
;
ReleaseDC
(
0
,
dc
);
HDC
dc
;
int
pixels
;
if
(((
short
)
template
.
pointSize
)
<
0
)
pixels
=
-
((
short
)
template
.
pointSize
);
else
{
dc
=
GetDC
(
0
);
pixels
=
template
.
pointSize
*
GetDeviceCaps
(
dc
,
LOGPIXELSY
)
/
72
;
ReleaseDC
(
0
,
dc
);
}
if
(
win32Template
)
hFont
=
CreateFontW
(
-
pixels
,
0
,
0
,
0
,
template
.
weight
,
template
.
italic
,
FALSE
,
FALSE
,
...
...
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