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
cdb86c6c
Commit
cdb86c6c
authored
Dec 01, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fill in the xExt and yExt fields in OleMetafilePictFromIconAndLabel.
parent
2fa7cadf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ole32_main.c
dlls/ole32/ole32_main.c
+6
-1
No files found.
dlls/ole32/ole32_main.c
View file @
cdb86c6c
...
...
@@ -32,6 +32,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
#define HIMETRIC_INCHES 2540
/***********************************************************************
* OleMetafilePictFromIconAndLabel (OLE32.@)
*/
...
...
@@ -120,7 +122,10 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel,
}
mfp
.
mm
=
MM_ANISOTROPIC
;
mfp
.
xExt
=
mfp
.
yExt
=
0
;
/* FIXME ? */
hdcScreen
=
GetDC
(
NULL
);
mfp
.
xExt
=
MulDiv
(
width
,
HIMETRIC_INCHES
,
GetDeviceCaps
(
hdcScreen
,
LOGPIXELSX
));
mfp
.
yExt
=
MulDiv
(
label_offset
+
text_size
.
cy
,
HIMETRIC_INCHES
,
GetDeviceCaps
(
hdcScreen
,
LOGPIXELSY
));
ReleaseDC
(
NULL
,
hdcScreen
);
mfp
.
hMF
=
CloseMetaFile
(
hdc
);
DeleteObject
(
font
);
if
(
!
mfp
.
hMF
)
...
...
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