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
d7d3309e
Commit
d7d3309e
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: The width of the metafile drawn should be 3 times the icon width in…
ole32: The width of the metafile drawn should be 3 times the icon width in OleMetafilePictFromIconAndLabel.
parent
cdb86c6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ole32_main.c
dlls/ole32/ole32_main.c
+4
-1
No files found.
dlls/ole32/ole32_main.c
View file @
d7d3309e
...
...
@@ -91,8 +91,11 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel,
GetTextExtentPoint32W
(
hdcScreen
,
lpszLabel
,
lstrlenW
(
lpszLabel
),
&
text_size
);
SelectObject
(
hdcScreen
,
screen_old_font
);
ReleaseDC
(
NULL
,
hdcScreen
);
width
=
3
*
icon_width
;
}
width
=
max
(
text_size
.
cx
,
icon_width
);
else
width
=
icon_width
;
SetWindowOrgEx
(
hdc
,
0
,
0
,
NULL
);
SetWindowExtEx
(
hdc
,
width
,
label_offset
+
text_size
.
cy
,
NULL
);
...
...
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