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
813d6dc5
Commit
813d6dc5
authored
Aug 28, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipIsEmptyClip with tests.
parent
ff88d4e1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
1 deletion
+45
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+8
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+35
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
813d6dc5
...
@@ -414,7 +414,7 @@
...
@@ -414,7 +414,7 @@
@ stub GdipImageSetAbort
@ stub GdipImageSetAbort
@ stub GdipInitializePalette
@ stub GdipInitializePalette
@ stdcall GdipInvertMatrix(ptr)
@ stdcall GdipInvertMatrix(ptr)
@ st
ub GdipIsClipEmpty
@ st
dcall GdipIsClipEmpty(ptr ptr)
@ stdcall GdipIsEmptyRegion(ptr ptr ptr)
@ stdcall GdipIsEmptyRegion(ptr ptr ptr)
@ stdcall GdipIsEqualRegion(ptr ptr ptr ptr)
@ stdcall GdipIsEqualRegion(ptr ptr ptr ptr)
@ stdcall GdipIsInfiniteRegion(ptr ptr ptr)
@ stdcall GdipIsInfiniteRegion(ptr ptr ptr)
...
...
dlls/gdiplus/graphics.c
View file @
813d6dc5
...
@@ -2392,6 +2392,14 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
...
@@ -2392,6 +2392,14 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
return
Ok
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipIsClipEmpty
(
GpGraphics
*
graphics
,
BOOL
*
res
)
{
if
(
!
graphics
||
!
res
)
return
InvalidParameter
;
return
GdipIsEmptyRegion
(
graphics
->
clip
,
graphics
,
res
);
}
GpStatus
WINGDIPAPI
GdipMeasureCharacterRanges
(
GpGraphics
*
graphics
,
GpStatus
WINGDIPAPI
GdipMeasureCharacterRanges
(
GpGraphics
*
graphics
,
GDIPCONST
WCHAR
*
string
,
INT
length
,
GDIPCONST
GpFont
*
font
,
GDIPCONST
WCHAR
*
string
,
INT
length
,
GDIPCONST
GpFont
*
font
,
GDIPCONST
RectF
*
layoutRect
,
GDIPCONST
GpStringFormat
*
stringFormat
,
GDIPCONST
RectF
*
layoutRect
,
GDIPCONST
GpStringFormat
*
stringFormat
,
...
...
dlls/gdiplus/tests/graphics.c
View file @
813d6dc5
...
@@ -844,6 +844,40 @@ static void test_get_set_clip(void)
...
@@ -844,6 +844,40 @@ static void test_get_set_clip(void)
ReleaseDC
(
0
,
hdc
);
ReleaseDC
(
0
,
hdc
);
}
}
static
void
test_isempty
(
void
)
{
GpStatus
status
;
GpGraphics
*
graphics
=
NULL
;
HDC
hdc
=
GetDC
(
0
);
GpRegion
*
clip
;
BOOL
res
;
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
status
=
GdipCreateRegion
(
&
clip
);
expect
(
Ok
,
status
);
/* NULL */
status
=
GdipIsClipEmpty
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipIsClipEmpty
(
graphics
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipIsClipEmpty
(
NULL
,
&
res
);
expect
(
InvalidParameter
,
status
);
/* default is infinite */
res
=
TRUE
;
status
=
GdipIsClipEmpty
(
graphics
,
&
res
);
expect
(
Ok
,
status
);
expect
(
FALSE
,
res
);
GdipDeleteRegion
(
clip
);
GdipDeleteGraphics
(
graphics
);
ReleaseDC
(
0
,
hdc
);
}
START_TEST
(
graphics
)
START_TEST
(
graphics
)
{
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
@@ -866,6 +900,7 @@ START_TEST(graphics)
...
@@ -866,6 +900,7 @@ START_TEST(graphics)
test_Get_Release_DC
();
test_Get_Release_DC
();
test_transformpoints
();
test_transformpoints
();
test_get_set_clip
();
test_get_set_clip
();
test_isempty
();
GdiplusShutdown
(
gdiplusToken
);
GdiplusShutdown
(
gdiplusToken
);
}
}
include/gdiplusflat.h
View file @
813d6dc5
...
@@ -158,6 +158,7 @@ GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics*,CompositingMode*);
...
@@ -158,6 +158,7 @@ GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics*,CompositingMode*);
GpStatus
WINGDIPAPI
GdipGetClip
(
GpGraphics
*
,
GpRegion
*
);
GpStatus
WINGDIPAPI
GdipGetClip
(
GpGraphics
*
,
GpRegion
*
);
GpStatus
WINGDIPAPI
GdipSetClipRegion
(
GpGraphics
*
,
GpRegion
*
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipSetClipRegion
(
GpGraphics
*
,
GpRegion
*
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipResetClip
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipResetClip
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipIsClipEmpty
(
GpGraphics
*
,
BOOL
*
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetDC
(
GpGraphics
*
,
HDC
*
);
GpStatus
WINGDIPAPI
GdipGetDC
(
GpGraphics
*
,
HDC
*
);
GpStatus
WINGDIPAPI
GdipGetImageDimension
(
GpImage
*
,
REAL
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetImageDimension
(
GpImage
*
,
REAL
*
,
REAL
*
);
...
...
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