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
be66c3c9
Commit
be66c3c9
authored
Aug 15, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Use DrawText instead of TabbedTextOut.
parent
ca949393
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
graphics.c
dlls/gdiplus/graphics.c
+8
-8
No files found.
dlls/gdiplus/graphics.c
View file @
be66c3c9
...
...
@@ -1287,6 +1287,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
INT
sum
=
0
,
height
=
0
,
fit
,
fitcpy
,
save_state
,
i
,
j
,
lret
,
nwidth
,
nheight
;
SIZE
size
;
RECT
drawcoord
;
if
(
!
graphics
||
!
string
||
!
font
||
!
brush
||
!
rect
)
return
InvalidParameter
;
...
...
@@ -1366,15 +1367,16 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
length
=
j
;
while
(
sum
<
length
){
drawcoord
.
left
=
corners
[
0
].
x
+
roundr
(
ang_sin
*
(
REAL
)
height
);
drawcoord
.
top
=
corners
[
0
].
y
+
roundr
(
ang_cos
*
(
REAL
)
height
);
GetTextExtentExPointW
(
graphics
->
hdc
,
stringdup
+
sum
,
length
-
sum
,
nwidth
,
&
fit
,
NULL
,
&
size
);
fitcpy
=
fit
;
if
(
fit
==
0
){
TabbedTextOutW
(
graphics
->
hdc
,
corners
[
0
].
x
+
roundr
(
ang_sin
*
(
REAL
)
height
),
corners
[
0
].
y
+
roundr
(
ang_cos
*
(
REAL
)
height
),
stringdup
+
sum
,
1
,
0
,
0
,
0
);
DrawTextW
(
graphics
->
hdc
,
stringdup
+
sum
,
1
,
&
drawcoord
,
DT_NOCLIP
|
DT_EXPANDTABS
);
break
;
}
...
...
@@ -1402,10 +1404,8 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
}
}
}
TabbedTextOutW
(
graphics
->
hdc
,
corners
[
0
].
x
-
roundr
(
ang_sin
*
(
REAL
)
height
),
corners
[
0
].
y
+
roundr
(
ang_cos
*
(
REAL
)
height
),
stringdup
+
sum
,
min
(
length
-
sum
,
fit
),
0
,
0
,
0
);
DrawTextW
(
graphics
->
hdc
,
stringdup
+
sum
,
min
(
length
-
sum
,
fit
),
&
drawcoord
,
DT_NOCLIP
|
DT_EXPANDTABS
);
sum
+=
fit
+
(
lret
<
fitcpy
?
1
:
0
);
height
+=
size
.
cy
;
...
...
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