Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7faae4c5
Commit
7faae4c5
authored
May 19, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issues in EMFDRV_ExtTextOut.
parent
6ac67518
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
graphics.c
dlls/gdi/enhmfdrv/graphics.c
+12
-8
No files found.
dlls/gdi/enhmfdrv/graphics.c
View file @
7faae4c5
...
...
@@ -643,8 +643,7 @@ BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
BOOL
ret
;
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
nSize
=
sizeof
(
*
pemr
)
+
(
count
+
1
)
/
2
*
2
*
sizeof
(
WCHAR
)
+
(
lpDx
?
count
*
sizeof
(
INT
)
:
0
);
nSize
=
sizeof
(
*
pemr
)
+
((
count
+
1
)
&
~
1
)
*
sizeof
(
WCHAR
)
+
count
*
sizeof
(
INT
);
TRACE
(
"%s count %d nSize = %ld
\n
"
,
debugstr_wn
(
str
,
count
),
count
,
nSize
);
pemr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
nSize
);
...
...
@@ -675,13 +674,18 @@ BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags,
pemr
->
emrtext
.
rcl
.
bottom
=
lprect
->
bottom
;
}
if
(
lpDx
)
{
pemr
->
emrtext
.
offDx
=
sizeof
(
*
pemr
)
+
(
count
+
1
)
/
2
*
2
*
sizeof
(
WCHAR
);
pemr
->
emrtext
.
offDx
=
pemr
->
emrtext
.
offString
+
count
*
sizeof
(
WCHAR
);
if
(
lpDx
)
memcpy
((
char
*
)
pemr
+
pemr
->
emrtext
.
offDx
,
lpDx
,
count
*
sizeof
(
INT
));
}
else
pemr
->
emrtext
.
offDx
=
0
;
/* FIXME: actually Windows fills out the array
using GetCharWidth in this case */
else
{
UINT
i
;
INT
*
dx
=
(
INT
*
)((
char
*
)
pemr
+
pemr
->
emrtext
.
offDx
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
GetCharWidth32W
(
physDev
->
hdc
,
str
[
i
],
str
[
i
],
&
dx
[
i
]);
}
}
ret
=
EMFDRV_WriteRecord
(
dev
,
&
pemr
->
emr
);
if
(
ret
)
...
...
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