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
0fc0ef25
Commit
0fc0ef25
authored
Aug 17, 2002
by
Huw D M Davies
Committed by
Alexandre Julliard
Aug 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for metafile ExtTextOut that only includes the rectangle if either
ETO_CLIPPED or ETO_OPAQUE is set.
parent
7318acaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
text.c
dlls/gdi/mfdrv/text.c
+5
-6
No files found.
dlls/gdi/mfdrv/text.c
View file @
0fc0ef25
...
...
@@ -37,12 +37,11 @@ static BOOL MFDRV_MetaExtTextOut( PHYSDEV dev, short x, short y, UINT16 flags,
BOOL
ret
;
DWORD
len
;
METARECORD
*
mr
;
BOOL
isrect
=
flags
&
(
ETO_CLIPPED
|
ETO_OPAQUE
);
if
(
flags
&&
!
rect
)
WARN
(
"Inconsistent flags and rect
\n
"
);
len
=
sizeof
(
METARECORD
)
+
(((
count
+
1
)
>>
1
)
*
2
)
+
2
*
sizeof
(
short
)
+
sizeof
(
UINT16
);
if
(
rect
&&
flags
)
if
(
isrect
)
len
+=
sizeof
(
RECT16
);
if
(
lpDx
)
len
+=
count
*
sizeof
(
INT16
);
...
...
@@ -55,10 +54,10 @@ static BOOL MFDRV_MetaExtTextOut( PHYSDEV dev, short x, short y, UINT16 flags,
*
(
mr
->
rdParm
+
1
)
=
x
;
*
(
mr
->
rdParm
+
2
)
=
count
;
*
(
mr
->
rdParm
+
3
)
=
flags
;
if
(
rect
&&
flags
)
memcpy
(
mr
->
rdParm
+
4
,
rect
,
sizeof
(
RECT16
));
memcpy
(
mr
->
rdParm
+
(
(
rect
&&
flags
)
?
8
:
4
),
str
,
count
);
if
(
isrect
)
memcpy
(
mr
->
rdParm
+
4
,
rect
,
sizeof
(
RECT16
));
memcpy
(
mr
->
rdParm
+
(
isrect
?
8
:
4
),
str
,
count
);
if
(
lpDx
)
memcpy
(
mr
->
rdParm
+
(
(
rect
&&
flags
)
?
8
:
4
)
+
((
count
+
1
)
>>
1
),
lpDx
,
memcpy
(
mr
->
rdParm
+
(
isrect
?
8
:
4
)
+
((
count
+
1
)
>>
1
),
lpDx
,
count
*
sizeof
(
INT16
));
ret
=
MFDRV_WriteRecord
(
dev
,
mr
,
mr
->
rdSize
*
2
);
HeapFree
(
GetProcessHeap
(),
0
,
mr
);
...
...
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