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
23d03671
Commit
23d03671
authored
Mar 29, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move EMR*16 definitions to wingdi.h, as they're part of the WIN32 API.
parent
d687ed2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
34 deletions
+49
-34
wingdi16.h
include/wine/wingdi16.h
+0
-29
wingdi.h
include/wingdi.h
+29
-0
enhmetafile.c
objects/enhmetafile.c
+20
-5
No files found.
include/wine/wingdi16.h
View file @
23d03671
...
...
@@ -311,35 +311,6 @@ typedef struct
HMETAFILE16
hMF
;
}
METAFILEPICT16
,
*
LPMETAFILEPICT16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
cpts
;
POINT16
apts
[
1
];
}
EMRPOLYLINE16
,
*
PEMRPOLYLINE16
,
EMRPOLYBEZIER16
,
*
PEMRPOLYBEZIER16
,
EMRPOLYGON16
,
*
PEMRPOLYGON16
,
EMRPOLYBEZIERTO16
,
*
PEMRPOLYBEZIERTO16
,
EMRPOLYLINETO16
,
*
PEMRPOLYLINETO16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
cpts
;
POINT16
apts
[
1
];
BYTE
abTypes
[
1
];
}
EMRPOLYDRAW16
,
*
PEMRPOLYDRAW16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
nPolys
;
DWORD
cpts
;
DWORD
aPolyCounts
[
1
];
POINT16
apts
[
1
];
}
EMRPOLYPOLYLINE16
,
*
PEMRPOLYPOLYLINE16
,
EMRPOLYPOLYGON16
,
*
PEMRPOLYPOLYGON16
;
typedef
INT16
(
CALLBACK
*
MFENUMPROC16
)(
HDC16
,
HANDLETABLE16
*
,
METARECORD
*
,
INT16
,
LPARAM
);
typedef
struct
...
...
include/wingdi.h
View file @
23d03671
...
...
@@ -2335,6 +2335,35 @@ typedef struct {
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
cpts
;
POINTS
apts
[
1
];
}
EMRPOLYLINE16
,
*
PEMRPOLYLINE16
,
EMRPOLYBEZIER16
,
*
PEMRPOLYBEZIER16
,
EMRPOLYGON16
,
*
PEMRPOLYGON16
,
EMRPOLYBEZIERTO16
,
*
PEMRPOLYBEZIERTO16
,
EMRPOLYLINETO16
,
*
PEMRPOLYLINETO16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
cpts
;
POINTS
apts
[
1
];
BYTE
abTypes
[
1
];
}
EMRPOLYDRAW16
,
*
PEMRPOLYDRAW16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
nPolys
;
DWORD
cpts
;
DWORD
aPolyCounts
[
1
];
POINTS
apts
[
1
];
}
EMRPOLYPOLYLINE16
,
*
PEMRPOLYPOLYLINE16
,
EMRPOLYPOLYGON16
,
*
PEMRPOLYPOLYGON16
;
typedef
struct
{
EMR
emr
;
RECTL
rclBounds
;
DWORD
cptl
;
POINTL
aptl
[
1
];
BYTE
abTypes
[
1
];
...
...
objects/enhmetafile.c
View file @
23d03671
...
...
@@ -869,7 +869,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
for
(
i
=
0
;
i
<
pPoly
->
cpts
;
i
++
)
CONV_POINT16TO32
(
pPoly
->
apts
+
i
,
pts
+
i
);
{
pts
[
i
].
x
=
pPoly
->
apts
[
i
].
x
;
pts
[
i
].
y
=
pPoly
->
apts
[
i
].
y
;
}
Polygon
(
hdc
,
pts
,
pPoly
->
cpts
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
break
;
...
...
@@ -882,7 +885,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
for
(
i
=
0
;
i
<
pPoly
->
cpts
;
i
++
)
CONV_POINT16TO32
(
pPoly
->
apts
+
i
,
pts
+
i
);
{
pts
[
i
].
x
=
pPoly
->
apts
[
i
].
x
;
pts
[
i
].
y
=
pPoly
->
apts
[
i
].
y
;
}
Polyline
(
hdc
,
pts
,
pPoly
->
cpts
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
break
;
...
...
@@ -895,7 +901,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
for
(
i
=
0
;
i
<
pPoly
->
cpts
;
i
++
)
CONV_POINT16TO32
(
pPoly
->
apts
+
i
,
pts
+
i
);
{
pts
[
i
].
x
=
pPoly
->
apts
[
i
].
x
;
pts
[
i
].
y
=
pPoly
->
apts
[
i
].
y
;
}
PolylineTo
(
hdc
,
pts
,
pPoly
->
cpts
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
break
;
...
...
@@ -908,7 +917,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
for
(
i
=
0
;
i
<
pPoly
->
cpts
;
i
++
)
CONV_POINT16TO32
(
pPoly
->
apts
+
i
,
pts
+
i
);
{
pts
[
i
].
x
=
pPoly
->
apts
[
i
].
x
;
pts
[
i
].
y
=
pPoly
->
apts
[
i
].
y
;
}
PolyBezier
(
hdc
,
pts
,
pPoly
->
cpts
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
break
;
...
...
@@ -921,7 +933,10 @@ BOOL WINAPI PlayEnhMetaFileRecord(
pPoly
->
cpts
*
sizeof
(
POINT
)
);
DWORD
i
;
for
(
i
=
0
;
i
<
pPoly
->
cpts
;
i
++
)
CONV_POINT16TO32
(
pPoly
->
apts
+
i
,
pts
+
i
);
{
pts
[
i
].
x
=
pPoly
->
apts
[
i
].
x
;
pts
[
i
].
y
=
pPoly
->
apts
[
i
].
y
;
}
PolyBezierTo
(
hdc
,
pts
,
pPoly
->
cpts
);
HeapFree
(
GetProcessHeap
(),
0
,
pts
);
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