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
6ac67518
Commit
6ac67518
authored
May 19, 2003
by
Huw Davies
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Record escapes in metafiles.
parent
783b3236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
init.c
dlls/gdi/mfdrv/init.c
+18
-17
No files found.
dlls/gdi/mfdrv/init.c
View file @
6ac67518
...
@@ -536,22 +536,21 @@ INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
...
@@ -536,22 +536,21 @@ INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
{
{
METARECORD
*
mr
;
METARECORD
*
mr
;
DWORD
len
;
DWORD
len
;
INT
ret
;
if
(
nEscape
==
MFCOMMENT
)
{
len
=
sizeof
(
*
mr
)
+
sizeof
(
WORD
)
+
((
cbInput
+
1
)
&
~
1
);
len
=
sizeof
(
*
mr
)
+
sizeof
(
WORD
)
+
((
cbInput
+
1
)
&
~
1
);
mr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
mr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
len
);
mr
->
rdSize
=
len
/
2
;
mr
->
rdSize
=
len
/
2
;
mr
->
rdFunction
=
META_ESCAPE
;
mr
->
rdFunction
=
META_ESCAPE
;
mr
->
rdParm
[
0
]
=
nEscape
;
mr
->
rdParm
[
0
]
=
nEscape
;
mr
->
rdParm
[
1
]
=
cbInput
;
mr
->
rdParm
[
1
]
=
cbInput
;
memcpy
(
&
(
mr
->
rdParm
[
2
]),
in_data
,
cbInput
);
memcpy
(
&
(
mr
->
rdParm
[
2
]),
in_data
,
cbInput
);
MFDRV_WriteRecord
(
dev
,
mr
,
len
);
ret
=
MFDRV_WriteRecord
(
dev
,
mr
,
len
);
HeapFree
(
GetProcessHeap
(),
0
,
mr
);
HeapFree
(
GetProcessHeap
(),
0
,
mr
);
return
1
;
return
ret
;
}
return
0
;
}
}
/******************************************************************
/******************************************************************
* MFDRV_GetDeviceCaps
* MFDRV_GetDeviceCaps
*
*
...
@@ -562,9 +561,11 @@ INT MFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
...
@@ -562,9 +561,11 @@ INT MFDRV_GetDeviceCaps(PHYSDEV dev, INT cap)
switch
(
cap
)
switch
(
cap
)
{
{
case
TECHNOLOGY
:
case
TECHNOLOGY
:
return
DT_METAFILE
;
return
DT_METAFILE
;
case
TEXTCAPS
:
return
0
;
default:
default:
TRACE
(
" unsupported capability %d, will return 0
\n
"
,
cap
);
TRACE
(
" unsupported capability %d, will return 0
\n
"
,
cap
);
return
0
;
}
}
return
0
;
}
}
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