Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
ddf8a74a
Commit
ddf8a74a
authored
23 years ago
by
Aric Stewart
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fleshed out some metafile conversions.
parent
ae7fe2db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
objects/enhmetafile.c
+74
-15
74 additions, 15 deletions
objects/enhmetafile.c
with
74 additions
and
15 deletions
objects/enhmetafile.c
+
74
−
15
View file @
ddf8a74a
...
...
@@ -1811,19 +1811,33 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
lpNewEnhMetaFileHeader
->
rclFrame
.
top
=
0
;
lpNewEnhMetaFileHeader
->
rclFrame
.
bottom
=
0
;
lpNewEnhMetaFileHeader
->
nHandles
=
0
;
/* No handles yet */
lpNewEnhMetaFileHeader
->
dSignature
=
ENHMETA_SIGNATURE
;
lpNewEnhMetaFileHeader
->
nVersion
=
0x10000
;
lpNewEnhMetaFileHeader
->
nBytes
=
lpNewEnhMetaFileHeader
->
nSize
;
lpNewEnhMetaFileHeader
->
sReserved
=
0
;
/* FIXME: if there is a description add it */
lpNewEnhMetaFileHeader
->
nDescription
=
0
;
lpNewEnhMetaFileHeader
->
offDescription
=
0
;
lpNewEnhMetaFileHeader
->
nHandles
=
0
;
/* No handles yet */
lpNewEnhMetaFileHeader
->
nRecords
=
0
;
/* I am pretty sure this starts at 0 and grows as entries are added */
lpNewEnhMetaFileHeader
->
nPalEntries
=
0
;
/* Size in Pixels */
lpNewEnhMetaFileHeader
->
szlDevice
.
cx
=
GetDeviceCaps
(
hdcRef
,
HORZRES
);
lpNewEnhMetaFileHeader
->
szlDevice
.
cy
=
GetDeviceCaps
(
hdcRef
,
VERTRES
);
/* Size in mm */
lpNewEnhMetaFileHeader
->
szlMillimeters
.
cx
=
GetDeviceCaps
(
hdcRef
,
HORZSIZE
);
lpNewEnhMetaFileHeader
->
szlMillimeters
.
cy
=
GetDeviceCaps
(
hdcRef
,
VERTSIZE
);
/* FIXME: Add in the rest of the fields to the header */
/* dSignature
nVersion
nRecords
sReserved
nDescription
offDescription
nPalEntries
szlDevice
szlMillimeters
cbPixelFormat
/* cbPixelFormat
offPixelFormat,
bOpenGL */
}
...
...
@@ -2009,21 +2023,66 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
break
;
}
case
META_LINETO
:
case
META_MOVETO
:
{
PEMRLINETO
lpRecord
;
size_t
uRecord
=
sizeof
(
*
lpRecord
);
/* These are all unimplemented and as such are intended to fall through to the default case */
EMF_ReAllocAndAdjustPointers
(
PEMRLINETO
,
uRecord
);
if
(
lpMetaRecord
->
rdFunction
==
META_LINETO
)
{
lpRecord
->
emr
.
iType
=
EMR_LINETO
;
}
else
{
lpRecord
->
emr
.
iType
=
EMR_MOVETOEX
;
}
lpRecord
->
emr
.
nSize
=
sizeof
(
*
lpRecord
);
lpRecord
->
ptl
.
x
=
lpMetaRecord
->
rdParm
[
1
];
lpRecord
->
ptl
.
y
=
lpMetaRecord
->
rdParm
[
0
];
break
;
}
case
META_SETTEXTCOLOR
:
case
META_SETBKCOLOR
:
{
PEMRSETBKCOLOR
lpRecord
;
size_t
uRecord
=
sizeof
(
*
lpRecord
);
EMF_ReAllocAndAdjustPointers
(
PEMRSETBKCOLOR
,
uRecord
);
if
(
lpMetaRecord
->
rdFunction
==
META_SETTEXTCOLOR
)
{
lpRecord
->
emr
.
iType
=
EMR_SETTEXTCOLOR
;
}
else
{
lpRecord
->
emr
.
iType
=
EMR_SETBKCOLOR
;
}
lpRecord
->
emr
.
nSize
=
sizeof
(
*
lpRecord
);
lpRecord
->
crColor
=
MAKELONG
(
lpMetaRecord
->
rdParm
[
0
],
lpMetaRecord
->
rdParm
[
1
]);
break
;
}
/* These are all unimplemented and as such are intended to fall through to the default case */
case
META_SETBKMODE
:
case
META_SETROP2
:
case
META_SETRELABS
:
case
META_SETSTRETCHBLTMODE
:
case
META_SETTEXTCOLOR
:
case
META_SETVIEWPORTORG
:
case
META_OFFSETWINDOWORG
:
case
META_SCALEWINDOWEXT
:
case
META_OFFSETVIEWPORTORG
:
case
META_SCALEVIEWPORTEXT
:
case
META_LINETO
:
case
META_MOVETO
:
case
META_EXCLUDECLIPRECT
:
case
META_INTERSECTCLIPRECT
:
case
META_ARC
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment