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
3dcd0481
Commit
3dcd0481
authored
Aug 24, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use common helper for masked bitmaps to render an icon.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
293a6790
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
olepicture.c
dlls/oleaut32/olepicture.c
+11
-2
No files found.
dlls/oleaut32/olepicture.c
View file @
3dcd0481
...
...
@@ -711,9 +711,18 @@ static HRESULT WINAPI OLEPictureImpl_Render(IPicture *iface, HDC hdc,
}
case
PICTYPE_ICON
:
FIXME
(
"Not quite correct implementation of rendering icons...
\n
"
);
DrawIconEx
(
hdc
,
x
,
y
,
This
->
desc
.
u
.
icon
.
hicon
,
cx
,
cy
,
0
,
NULL
,
DI_NORMAL
);
{
ICONINFO
info
;
if
(
!
GetIconInfo
(
This
->
desc
.
u
.
icon
.
hicon
,
&
info
))
return
E_FAIL
;
render_masked_bitmap
(
This
,
hdc
,
x
,
y
,
cx
,
cy
,
xSrc
,
ySrc
,
cxSrc
,
cySrc
,
info
.
hbmMask
,
info
.
hbmColor
);
DeleteObject
(
info
.
hbmMask
);
if
(
info
.
hbmColor
)
DeleteObject
(
info
.
hbmColor
);
break
;
}
case
PICTYPE_METAFILE
:
{
...
...
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