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
d4107db6
Commit
d4107db6
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: Handle StringFormatFlagsNoWrap in GdipMeasureString.
parent
3f32083e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
graphics.c
dlls/gdiplus/graphics.c
+8
-3
No files found.
dlls/gdiplus/graphics.c
View file @
d4107db6
...
...
@@ -1729,13 +1729,14 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
if
(
!
graphics
||
!
string
||
!
font
||
!
rect
)
return
InvalidParameter
;
if
(
format
||
codepointsfitted
||
linesfilled
){
if
(
codepointsfitted
||
linesfilled
){
FIXME
(
"not implemented for given parameters
\n
"
);
if
(
format
)
TRACE
(
"format attr is %d
\n
"
,
format
->
attr
);
return
NotImplemented
;
}
if
(
format
)
TRACE
(
"may be ignoring some format flags: attr %x
\n
"
,
format
->
attr
);
if
(
length
==
-
1
)
length
=
lstrlenW
(
string
);
stringdup
=
GdipAlloc
(
length
*
sizeof
(
WCHAR
));
...
...
@@ -1797,6 +1798,10 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
if
(
height
>
roundr
(
rect
->
Height
))
break
;
/* Stop if this was a linewrap (but not if it was a linebreak). */
if
((
lret
==
fitcpy
)
&&
format
&&
(
format
->
attr
&
StringFormatFlagsNoWrap
))
break
;
}
bounds
->
X
=
rect
->
X
;
...
...
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