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
160be64e
Commit
160be64e
authored
Apr 03, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Apr 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added writing META_ESCAPE records.
parent
43ff7d2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
init.c
dlls/gdi/mfdrv/init.c
+23
-1
metafiledrv.h
dlls/gdi/mfdrv/metafiledrv.h
+2
-0
No files found.
dlls/gdi/mfdrv/init.c
View file @
160be64e
...
...
@@ -56,7 +56,7 @@ static const DC_FUNCTIONS MFDRV_Funcs =
NULL
,
/* pEnumDeviceFonts */
MFDRV_ExcludeClipRect
,
/* pExcludeClipRect */
NULL
,
/* pExtDeviceMode */
NULL
,
/* pExtEscape */
MFDRV_ExtEscape
,
/* pExtEscape */
MFDRV_ExtFloodFill
,
/* pExtFloodFill */
MFDRV_ExtTextOut
,
/* pExtTextOut */
MFDRV_FillPath
,
/* pFillPath */
...
...
@@ -536,4 +536,26 @@ int MFDRV_AddHandleDC( PHYSDEV dev )
return
physDev
->
nextHandle
++
;
}
/**********************************************************************
* MFDRV_ExtEscape
*/
INT
MFDRV_ExtEscape
(
PHYSDEV
dev
,
INT
nEscape
,
INT
cbInput
,
LPCVOID
in_data
,
INT
cbOutput
,
LPVOID
out_data
)
{
METARECORD
*
mr
;
DWORD
len
;
if
(
nEscape
==
MFCOMMENT
)
{
len
=
sizeof
(
*
mr
)
+
sizeof
(
WORD
)
+
((
cbInput
+
1
)
&
~
1
);
mr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
mr
->
rdSize
=
len
/
2
;
mr
->
rdFunction
=
META_ESCAPE
;
mr
->
rdParm
[
0
]
=
nEscape
;
mr
->
rdParm
[
1
]
=
cbInput
;
memcpy
(
&
(
mr
->
rdParm
[
2
]),
in_data
,
cbInput
);
MFDRV_WriteRecord
(
dev
,
mr
,
len
);
HeapFree
(
GetProcessHeap
(),
0
,
mr
);
return
1
;
}
return
0
;
}
dlls/gdi/mfdrv/metafiledrv.h
View file @
160be64e
...
...
@@ -70,6 +70,8 @@ extern BOOL MFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
extern
BOOL
MFDRV_EndPath
(
PHYSDEV
dev
);
extern
INT
MFDRV_ExcludeClipRect
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
);
extern
INT
MFDRV_ExtEscape
(
PHYSDEV
dev
,
INT
nEscape
,
INT
cbInput
,
LPCVOID
in_data
,
INT
cbOutput
,
LPVOID
out_data
);
extern
BOOL
MFDRV_ExtFloodFill
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
COLORREF
color
,
UINT
fillType
);
extern
BOOL
MFDRV_ExtTextOut
(
PHYSDEV
dev
,
INT
x
,
INT
y
,
...
...
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