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
c71853cd
Commit
c71853cd
authored
Aug 03, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Ignore the graphics transforms in GdipGetRegionBounds.
parent
ee745011
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
region.c
dlls/gdiplus/region.c
+2
-1
graphics.c
dlls/gdiplus/tests/graphics.c
+1
-1
region.c
dlls/gdiplus/tests/region.c
+23
-0
No files found.
dlls/gdiplus/region.c
View file @
c71853cd
...
...
@@ -657,7 +657,8 @@ GpStatus WINGDIPAPI GdipGetRegionBounds(GpRegion *region, GpGraphics *graphics,
if
(
!
region
||
!
graphics
||
!
rect
)
return
InvalidParameter
;
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
/* Contrary to MSDN, native ignores the graphics transform. */
status
=
GdipGetRegionHRgn
(
region
,
NULL
,
&
hrgn
);
if
(
status
!=
Ok
)
return
status
;
...
...
dlls/gdiplus/tests/graphics.c
View file @
c71853cd
...
...
@@ -459,7 +459,7 @@ static void test_BeginContainer2(void)
status
=
GdipEndContainer
(
graphics
,
cont2
);
GdipGetClipBounds
(
graphics
,
&
clip
);
todo_wine
ok
(
fabs
(
defClip
[
0
]
-
clip
.
X
)
<
0
.
0001
&&
ok
(
fabs
(
defClip
[
0
]
-
clip
.
X
)
<
0
.
0001
&&
fabs
(
defClip
[
1
]
-
clip
.
Y
)
<
0
.
0001
&&
fabs
(
defClip
[
2
]
-
clip
.
Width
)
<
0
.
0001
&&
fabs
(
defClip
[
3
]
-
clip
.
Height
)
<
0
.
0001
,
...
...
dlls/gdiplus/tests/region.c
View file @
c71853cd
...
...
@@ -1176,6 +1176,29 @@ static void test_getbounds(void)
ok
(
rectf
.
Width
==
100
.
0
,
"Expected width = 0.0, got %.2f
\n
"
,
rectf
.
Width
);
ok
(
rectf
.
Height
==
100
.
0
,
"Expected height = 0.0, got %.2f
\n
"
,
rectf
.
Height
);
/* the world and page transforms are ignored */
GdipScaleWorldTransform
(
graphics
,
2
.
0
,
2
.
0
,
MatrixOrderPrepend
);
GdipSetPageUnit
(
graphics
,
UnitInch
);
GdipSetPageScale
(
graphics
,
2
.
0
);
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
rectf
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
rectf
.
X
==
10
.
0
,
"Expected X = 0.0, got %.2f
\n
"
,
rectf
.
X
);
ok
(
rectf
.
Y
==
0
.
0
,
"Expected Y = 0.0, got %.2f
\n
"
,
rectf
.
Y
);
ok
(
rectf
.
Width
==
100
.
0
,
"Expected width = 0.0, got %.2f
\n
"
,
rectf
.
Width
);
rectf
.
X
=
10
.
0
;
rectf
.
Y
=
0
.
0
;
rectf
.
Width
=
rectf
.
Height
=
100
.
0
;
status
=
GdipCombineRegionRect
(
region
,
&
rectf
,
CombineModeReplace
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
rectf
.
X
=
rectf
.
Y
=
0
.
0
;
rectf
.
Height
=
rectf
.
Width
=
0
.
0
;
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
rectf
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
ok
(
rectf
.
X
==
10
.
0
,
"Expected X = 0.0, got %.2f
\n
"
,
rectf
.
X
);
ok
(
rectf
.
Y
==
0
.
0
,
"Expected Y = 0.0, got %.2f
\n
"
,
rectf
.
Y
);
ok
(
rectf
.
Width
==
100
.
0
,
"Expected width = 0.0, got %.2f
\n
"
,
rectf
.
Width
);
ok
(
rectf
.
Height
==
100
.
0
,
"Expected height = 0.0, got %.2f
\n
"
,
rectf
.
Height
);
status
=
GdipDeleteRegion
(
region
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipDeleteGraphics
(
graphics
);
...
...
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