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
ddf8a74a
Commit
ddf8a74a
authored
Jan 29, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fleshed out some metafile conversions.
parent
ae7fe2db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
15 deletions
+74
-15
enhmetafile.c
objects/enhmetafile.c
+74
-15
No files found.
objects/enhmetafile.c
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
:
...
...
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