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
8e5e588b
Commit
8e5e588b
authored
Mar 13, 1999
by
Caolan McNamara
Committed by
Alexandre Julliard
Mar 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for alternate DIBBITBLT layout.
parent
006efb35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
metafile.c
objects/metafile.c
+24
-6
No files found.
objects/metafile.c
View file @
8e5e588b
...
...
@@ -907,12 +907,30 @@ void WINAPI PlayMetaFileRecord16(
case
META_DIBBITBLT
:
{
LPBITMAPINFO
info
=
(
LPBITMAPINFO
)
&
(
mr
->
rdParm
[
8
]);
LPSTR
bits
=
(
LPSTR
)
info
+
DIB_BitmapInfoSize
(
info
,
mr
->
rdParm
[
0
]
);
StretchDIBits16
(
hdc
,
mr
->
rdParm
[
7
],
mr
->
rdParm
[
6
],
mr
->
rdParm
[
5
],
mr
->
rdParm
[
4
],
mr
->
rdParm
[
3
],
mr
->
rdParm
[
2
],
mr
->
rdParm
[
5
],
mr
->
rdParm
[
4
],
bits
,
info
,
DIB_RGB_COLORS
,
MAKELONG
(
mr
->
rdParm
[
0
],
mr
->
rdParm
[
1
]));
/*In practice ive found that theres two layout for META_DIBBITBLT,
one (the first here) is the usual one when a src dc is actually passed
int, the second occurs when the src dc is passed in as NULL to
the creating BitBlt.
as the second case has no dib, a size check will suffice to distinguish.
Caolan.McNamara@ul.ie
*/
if
(
mr
->
rdSize
>
12
)
{
LPBITMAPINFO
info
=
(
LPBITMAPINFO
)
&
(
mr
->
rdParm
[
8
]);
LPSTR
bits
=
(
LPSTR
)
info
+
DIB_BitmapInfoSize
(
info
,
mr
->
rdParm
[
0
]
);
StretchDIBits16
(
hdc
,
mr
->
rdParm
[
7
],
mr
->
rdParm
[
6
],
mr
->
rdParm
[
5
],
mr
->
rdParm
[
4
],
mr
->
rdParm
[
3
],
mr
->
rdParm
[
2
],
mr
->
rdParm
[
5
],
mr
->
rdParm
[
4
],
bits
,
info
,
DIB_RGB_COLORS
,
MAKELONG
(
mr
->
rdParm
[
0
],
mr
->
rdParm
[
1
]));
}
else
/*equivalent to a PatBlt*/
{
PatBlt16
(
hdc
,
mr
->
rdParm
[
8
],
mr
->
rdParm
[
7
],
mr
->
rdParm
[
6
],
mr
->
rdParm
[
5
],
MAKELONG
(
*
(
mr
->
rdParm
),
*
(
mr
->
rdParm
+
1
)));
}
}
break
;
...
...
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