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
d3bfa44d
Commit
d3bfa44d
authored
Feb 09, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Feb 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Intersect the background text box with the clip rectangle in device units.
parent
1eca24bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
font.c
dlls/gdi32/font.c
+2
-8
No files found.
dlls/gdi32/font.c
View file @
d3bfa44d
...
...
@@ -2346,14 +2346,8 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
text_box
.
top
=
y
-
tm
.
tmAscent
;
text_box
.
bottom
=
y
+
tm
.
tmDescent
;
if
(
flags
&
ETO_CLIPPED
)
{
text_box
.
left
=
max
(
lprect
->
left
,
text_box
.
left
);
text_box
.
right
=
min
(
lprect
->
right
,
text_box
.
right
);
text_box
.
top
=
max
(
lprect
->
top
,
text_box
.
top
);
text_box
.
bottom
=
min
(
lprect
->
bottom
,
text_box
.
bottom
);
}
if
(
text_box
.
left
<
text_box
.
right
&&
text_box
.
top
<
text_box
.
bottom
)
if
(
flags
&
ETO_CLIPPED
)
intersect_rect
(
&
text_box
,
&
text_box
,
&
rc
);
if
(
!
is_rect_empty
(
&
text_box
))
physdev
->
funcs
->
pExtTextOut
(
physdev
,
0
,
0
,
ETO_OPAQUE
,
&
text_box
,
NULL
,
0
,
NULL
);
}
}
...
...
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