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
db746fe8
Commit
db746fe8
authored
Mar 15, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipMeasureCharacterRanges shouldn't add margins to string bounds.
parent
534410b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
graphics.c
dlls/gdiplus/graphics.c
+0
-5
graphics.c
dlls/gdiplus/tests/graphics.c
+1
-7
No files found.
dlls/gdiplus/graphics.c
View file @
db746fe8
...
...
@@ -4684,11 +4684,6 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
scaled_rect
.
Y
=
layoutRect
->
Y
*
args
.
rel_height
;
scaled_rect
.
Width
=
layoutRect
->
Width
*
args
.
rel_width
;
scaled_rect
.
Height
=
layoutRect
->
Height
*
args
.
rel_height
;
if
(
scaled_rect
.
Width
>=
0
.
5
)
{
scaled_rect
.
Width
-=
margin_x
*
2
.
0
*
args
.
rel_width
;
if
(
scaled_rect
.
Width
<
0
.
5
)
return
Ok
;
/* doesn't fit */
}
get_font_hfont
(
graphics
,
font
,
stringFormat
,
&
gdifont
,
NULL
);
oldfont
=
SelectObject
(
hdc
,
gdifont
);
...
...
dlls/gdiplus/tests/graphics.c
View file @
db746fe8
...
...
@@ -4033,11 +4033,8 @@ todo_wine
set_rect_empty
(
&
bounds
);
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
bounds
);
expect
(
Ok
,
status
);
todo_wine
expectf_
(
5
.
0
+
margin_x
,
bounds
.
X
,
1
.
0
);
todo_wine
expectf
(
5
.
0
,
bounds
.
Y
);
todo_wine
expectf_
(
width_1
,
bounds
.
Width
,
1
.
0
);
todo_wine
expectf_
(
height
-
margin_y
,
bounds
.
Height
,
1
.
0
);
...
...
@@ -4071,13 +4068,9 @@ todo_wine
set_rect_empty
(
&
bounds
);
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
bounds
);
expect
(
Ok
,
status
);
todo_wine
expectf_
(
5
.
0
+
margin_x
,
bounds
.
X
,
1
.
0
);
todo_wine
expectf
(
5
.
0
,
bounds
.
Y
);
todo_wine
expectf_
(
width_1
,
bounds
.
Width
,
1
.
0
);
todo_wine
expectf
(
height_rgn
,
bounds
.
Height
);
set_rect_empty
(
&
rect
);
...
...
@@ -4234,6 +4227,7 @@ todo_wine
set_rect_empty
(
&
bounds
);
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
bounds
);
expect
(
Ok
,
status
);
todo_wine
expectf_
(
5
.
0
+
width_rgn
/
2
.
0
,
bounds
.
X
,
1
.
0
);
todo_wine
expectf_
(
5
.
0
+
height_rgn
/
2
.
0
,
bounds
.
Y
,
1
.
0
);
...
...
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