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
a7d14b0d
Commit
a7d14b0d
authored
May 21, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Reimplement GdipIsEmptyRegion.
parent
4b9a5585
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
region.c
dlls/gdiplus/region.c
+12
-1
No files found.
dlls/gdiplus/region.c
View file @
a7d14b0d
...
...
@@ -399,6 +399,8 @@ GpStatus WINGDIPAPI GdipCreateRegion(GpRegion **region)
if
(
!*
region
)
return
OutOfMemory
;
TRACE
(
"=> %p
\n
"
,
*
region
);
return
init_region
(
*
region
,
RegionDataInfiniteRect
);
}
...
...
@@ -680,6 +682,7 @@ GpStatus WINGDIPAPI GdipGetRegionBounds(GpRegion *region, GpGraphics *graphics,
if
(
!
hrgn
){
rect
->
X
=
rect
->
Y
=
-
(
REAL
)(
1
<<
22
);
rect
->
Width
=
rect
->
Height
=
(
REAL
)(
1
<<
23
);
TRACE
(
"%p => infinite
\n
"
,
region
);
return
Ok
;
}
...
...
@@ -688,6 +691,7 @@ GpStatus WINGDIPAPI GdipGetRegionBounds(GpRegion *region, GpGraphics *graphics,
rect
->
Y
=
r
.
top
;
rect
->
Width
=
r
.
right
-
r
.
left
;
rect
->
Height
=
r
.
bottom
-
r
.
top
;
TRACE
(
"%p => %s
\n
"
,
region
,
debugstr_rectf
(
rect
));
}
else
status
=
GenericError
;
...
...
@@ -1080,12 +1084,19 @@ GpStatus WINGDIPAPI GdipGetRegionHRgn(GpRegion *region, GpGraphics *graphics, HR
GpStatus
WINGDIPAPI
GdipIsEmptyRegion
(
GpRegion
*
region
,
GpGraphics
*
graphics
,
BOOL
*
res
)
{
GpStatus
status
;
GpRectF
rect
;
TRACE
(
"(%p, %p, %p)
\n
"
,
region
,
graphics
,
res
);
if
(
!
region
||
!
graphics
||
!
res
)
return
InvalidParameter
;
*
res
=
(
region
->
node
.
type
==
RegionDataEmptyRect
);
status
=
GdipGetRegionBounds
(
region
,
graphics
,
&
rect
);
if
(
status
!=
Ok
)
return
status
;
*
res
=
rect
.
Width
==
0
.
0
&&
rect
.
Height
==
0
.
0
;
TRACE
(
"=> %d
\n
"
,
*
res
);
return
Ok
;
}
...
...
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