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
685b9362
Commit
685b9362
authored
Feb 16, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The clip rectangle for ExtTextOut is in logical coords.
parent
80064d78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
text.c
dlls/x11drv/text.c
+5
-1
xrender.c
dlls/x11drv/xrender.c
+5
-1
No files found.
dlls/x11drv/text.c
View file @
685b9362
...
...
@@ -219,7 +219,11 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
if
(
flags
&
ETO_CLIPPED
)
{
HRGN
clip_region
=
CreateRectRgn
(
lprect
->
left
,
lprect
->
top
,
lprect
->
right
,
lprect
->
bottom
);
HRGN
clip_region
;
RECT
clip_rect
=
*
lprect
;
LPtoDP
(
physDev
->
hdc
,
(
POINT
*
)
&
clip_rect
,
2
);
clip_region
=
CreateRectRgnIndirect
(
&
clip_rect
);
/* make a copy of the current device region */
saved_region
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
CombineRgn
(
saved_region
,
physDev
->
region
,
0
,
RGN_COPY
);
...
...
dlls/x11drv/xrender.c
View file @
685b9362
...
...
@@ -1128,7 +1128,11 @@ BOOL X11DRV_XRender_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flag
if
(
flags
&
ETO_CLIPPED
)
{
HRGN
clip_region
=
CreateRectRgn
(
lprect
->
left
,
lprect
->
top
,
lprect
->
right
,
lprect
->
bottom
);
HRGN
clip_region
;
RECT
clip_rect
=
*
lprect
;
LPtoDP
(
hdc
,
(
POINT
*
)
&
clip_rect
,
2
);
clip_region
=
CreateRectRgnIndirect
(
&
clip_rect
);
/* make a copy of the current device region */
saved_region
=
CreateRectRgn
(
0
,
0
,
0
,
0
);
CombineRgn
(
saved_region
,
physDev
->
region
,
0
,
RGN_COPY
);
...
...
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