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
b4cd2c4d
Commit
b4cd2c4d
authored
Mar 25, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Mar 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add support for drawing the dib format.
parent
e410f273
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
datacache.c
dlls/ole32/datacache.c
+20
-0
No files found.
dlls/ole32/datacache.c
View file @
b4cd2c4d
...
@@ -1646,6 +1646,26 @@ static HRESULT WINAPI DataCache_Draw(
...
@@ -1646,6 +1646,26 @@ static HRESULT WINAPI DataCache_Draw(
return
S_OK
;
return
S_OK
;
}
}
case
CF_DIB
:
{
BITMAPFILEHEADER
*
file_head
;
BITMAPINFO
*
info
;
BYTE
*
bits
;
if
((
cache_entry
->
stgmedium
.
tymed
!=
TYMED_HGLOBAL
)
||
!
((
file_head
=
GlobalLock
(
cache_entry
->
stgmedium
.
u
.
hGlobal
))))
continue
;
info
=
(
BITMAPINFO
*
)(
file_head
+
1
);
bits
=
(
BYTE
*
)
file_head
+
file_head
->
bfOffBits
;
StretchDIBits
(
hdcDraw
,
lprcBounds
->
left
,
lprcBounds
->
top
,
lprcBounds
->
right
-
lprcBounds
->
left
,
lprcBounds
->
bottom
-
lprcBounds
->
top
,
0
,
0
,
info
->
bmiHeader
.
biWidth
,
info
->
bmiHeader
.
biHeight
,
bits
,
info
,
DIB_RGB_COLORS
,
SRCCOPY
);
GlobalUnlock
(
cache_entry
->
stgmedium
.
u
.
hGlobal
);
return
S_OK
;
}
}
}
}
}
...
...
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