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
7c57a72c
Commit
7c57a72c
authored
Dec 20, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Dec 20, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlayMetaFile and EnumMetaFile should work if the hdc is a
(enh)metafile DC.
parent
51721fff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
19 deletions
+11
-19
metafile.c
objects/metafile.c
+11
-19
No files found.
objects/metafile.c
View file @
7c57a72c
...
...
@@ -472,7 +472,6 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
DC
*
dc
;
BOOL
loaded
=
FALSE
;
if
(
!
mh
)
return
FALSE
;
...
...
@@ -483,11 +482,10 @@ static BOOL MF_PlayMetaFile( HDC hdc, METAHEADER *mh)
}
/* save the current pen, brush and font */
if
(
!
(
dc
=
(
DC
*
)
GDI_GetObjPtr
(
hdc
,
DC_MAGIC
)))
return
0
;
hPen
=
dc
->
w
.
hPen
;
hBrush
=
dc
->
w
.
hBrush
;
hFont
=
dc
->
w
.
hFont
;
GDI_HEAP_UNLOCK
(
hdc
);
hPen
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
hBrush
=
GetCurrentObject
(
hdc
,
OBJ_BRUSH
);
hFont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
/* create the handle table */
ht
=
HeapAlloc
(
SystemHeap
,
HEAP_ZERO_MEMORY
,
sizeof
(
HANDLETABLE16
)
*
mh
->
mtNoObjects
);
...
...
@@ -575,7 +573,6 @@ BOOL16 WINAPI EnumMetaFile16( HDC16 hdc, HMETAFILE16 hmf,
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
DC
*
dc
;
BOOL16
result
=
TRUE
,
loaded
=
FALSE
;
TRACE
(
"(%04x, %04x, %08lx, %08lx)
\n
"
,
...
...
@@ -589,11 +586,10 @@ BOOL16 WINAPI EnumMetaFile16( HDC16 hdc, HMETAFILE16 hmf,
loaded
=
TRUE
;
}
if
(
!
(
dc
=
(
DC
*
)
GDI_GetObjPtr
(
hdc
,
DC_MAGIC
)))
return
0
;
hPen
=
dc
->
w
.
hPen
;
hBrush
=
dc
->
w
.
hBrush
;
hFont
=
dc
->
w
.
hFont
;
GDI_HEAP_UNLOCK
(
hdc
);
/* save the current pen, brush and font */
hPen
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
hBrush
=
GetCurrentObject
(
hdc
,
OBJ_BRUSH
);
hFont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
/* create the handle table */
...
...
@@ -665,7 +661,6 @@ BOOL WINAPI EnumMetaFile(
HANDLETABLE
*
ht
;
BOOL
result
=
TRUE
,
loaded
=
FALSE
;
int
i
,
offset
=
0
;
DC
*
dc
=
(
DC
*
)
GDI_GetObjPtr
(
hdc
,
DC_MAGIC
);
HPEN
hPen
;
HBRUSH
hBrush
;
HFONT
hFont
;
...
...
@@ -680,12 +675,9 @@ BOOL WINAPI EnumMetaFile(
}
/* save the current pen, brush and font */
if
(
!
dc
)
return
0
;
hPen
=
dc
->
w
.
hPen
;
hBrush
=
dc
->
w
.
hBrush
;
hFont
=
dc
->
w
.
hFont
;
GDI_HEAP_UNLOCK
(
hdc
);
hPen
=
GetCurrentObject
(
hdc
,
OBJ_PEN
);
hBrush
=
GetCurrentObject
(
hdc
,
OBJ_BRUSH
);
hFont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
ht
=
HeapAlloc
(
SystemHeap
,
HEAP_ZERO_MEMORY
,
sizeof
(
HANDLETABLE
)
*
mh
->
mtNoObjects
);
...
...
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