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
60f55887
Commit
60f55887
authored
Jul 09, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Jul 09, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Account for transforms when calculating hdc bounds.
parent
718f1bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
graphics.c
dlls/gdiplus/graphics.c
+18
-0
No files found.
dlls/gdiplus/graphics.c
View file @
60f55887
...
...
@@ -1995,6 +1995,24 @@ static GpStatus get_graphics_bounds(GpGraphics* graphics, GpRectF* rect)
rect
->
Height
=
GetDeviceCaps
(
graphics
->
hdc
,
VERTRES
);
}
if
(
graphics
->
hdc
&&
(
GetMapMode
(
graphics
->
hdc
)
!=
MM_TEXT
||
GetGraphicsMode
(
graphics
->
hdc
)
!=
GM_COMPATIBLE
))
{
POINT
points
[
2
];
points
[
0
].
x
=
rect
->
X
;
points
[
0
].
y
=
rect
->
Y
;
points
[
1
].
x
=
rect
->
X
+
rect
->
Width
;
points
[
1
].
y
=
rect
->
Y
+
rect
->
Height
;
DPtoLP
(
graphics
->
hdc
,
points
,
sizeof
(
points
)
/
sizeof
(
points
[
0
]));
rect
->
X
=
min
(
points
[
0
].
x
,
points
[
1
].
x
);
rect
->
Y
=
min
(
points
[
0
].
y
,
points
[
1
].
y
);
rect
->
Width
=
abs
(
points
[
1
].
x
-
points
[
0
].
x
);
rect
->
Height
=
abs
(
points
[
1
].
y
-
points
[
0
].
y
);
}
return
stat
;
}
...
...
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