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
e9aef40c
Commit
e9aef40c
authored
Aug 20, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Round the layout rectangle down instead of up in gdip_format_string().
parent
003333e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
graphics.c
dlls/gdiplus/graphics.c
+2
-2
graphics.c
dlls/gdiplus/tests/graphics.c
+0
-4
No files found.
dlls/gdiplus/graphics.c
View file @
e9aef40c
...
...
@@ -4728,8 +4728,8 @@ GpStatus gdip_format_string(HDC hdc,
stringdup
=
GdipAlloc
((
length
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
stringdup
)
return
OutOfMemory
;
nwidth
=
r
oundr
(
rect
->
Width
)
;
nheight
=
r
oundr
(
rect
->
Height
)
;
nwidth
=
r
ect
->
Width
;
nheight
=
r
ect
->
Height
;
if
(
rect
->
Width
>=
INT_MAX
||
rect
->
Width
<
0
.
5
)
nwidth
=
INT_MAX
;
if
(
rect
->
Height
>=
INT_MAX
||
rect
->
Height
<
0
.
5
)
nheight
=
INT_MAX
;
...
...
dlls/gdiplus/tests/graphics.c
View file @
e9aef40c
...
...
@@ -3865,10 +3865,8 @@ todo_wine
set_rect_empty
(
&
bounds
);
status
=
GdipMeasureString
(
graphics
,
string
,
-
1
,
font
,
&
rect
,
format
,
&
bounds
,
&
glyphs
,
&
lines
);
expect
(
Ok
,
status
);
todo_wine
expect
(
2
,
glyphs
);
expect
(
1
,
lines
);
todo_wine
expectf_
(
width_2
,
bounds
.
Width
,
0
.
01
);
expectf
(
height
,
bounds
.
Height
);
...
...
@@ -3878,10 +3876,8 @@ todo_wine
set_rect_empty
(
&
bounds
);
status
=
GdipMeasureString
(
graphics
,
string
,
-
1
,
font
,
&
rect
,
format
,
&
bounds
,
&
glyphs
,
&
lines
);
expect
(
Ok
,
status
);
todo_wine
expect
(
1
,
glyphs
);
expect
(
1
,
lines
);
todo_wine
expectf_
(
width_1
,
bounds
.
Width
,
0
.
01
);
expectf
(
height
,
bounds
.
Height
);
...
...
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