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
ff88d4e1
Commit
ff88d4e1
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 GdipResetClip with tests.
parent
698e8727
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
1 deletion
+46
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+11
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+33
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
ff88d4e1
...
...
@@ -474,7 +474,7 @@
@ stub GdipRecordMetafileStreamI
@ stdcall GdipReleaseDC(ptr ptr)
@ stdcall GdipRemovePropertyItem(ptr long)
@ st
ub GdipResetClip
@ st
dcall GdipResetClip(ptr)
@ stub GdipResetImageAttributes
@ stub GdipResetLineTransform
@ stub GdipResetPageTransform
...
...
dlls/gdiplus/graphics.c
View file @
ff88d4e1
...
...
@@ -2514,6 +2514,17 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipResetClip
(
GpGraphics
*
graphics
)
{
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
return
GdipSetInfinite
(
graphics
->
clip
);
}
GpStatus
WINGDIPAPI
GdipResetWorldTransform
(
GpGraphics
*
graphics
)
{
if
(
!
graphics
)
...
...
dlls/gdiplus/tests/graphics.c
View file @
ff88d4e1
...
...
@@ -674,6 +674,8 @@ static void test_Get_Release_DC(void)
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
/* GdipMeasureCharacterRanges */
/* GdipMeasureString */
status
=
GdipResetClip
(
graphics
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipResetWorldTransform
(
graphics
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
/* GdipRestoreGraphics */
...
...
@@ -805,6 +807,37 @@ static void test_get_set_clip(void)
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
/* remains infinite after reset */
res
=
FALSE
;
status
=
GdipResetClip
(
graphics
);
expect
(
Ok
,
status
);
status
=
GdipGetClip
(
graphics
,
clip
);
expect
(
Ok
,
status
);
status
=
GdipIsInfiniteRegion
(
clip
,
graphics
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
/* set to empty and then reset to infinite */
status
=
GdipSetEmpty
(
clip
);
expect
(
Ok
,
status
);
status
=
GdipSetClipRegion
(
graphics
,
clip
,
CombineModeReplace
);
expect
(
Ok
,
status
);
status
=
GdipGetClip
(
graphics
,
clip
);
expect
(
Ok
,
status
);
res
=
FALSE
;
status
=
GdipIsEmptyRegion
(
clip
,
graphics
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
status
=
GdipResetClip
(
graphics
);
expect
(
Ok
,
status
);
status
=
GdipGetClip
(
graphics
,
clip
);
expect
(
Ok
,
status
);
res
=
FALSE
;
status
=
GdipIsInfiniteRegion
(
clip
,
graphics
,
&
res
);
expect
(
Ok
,
status
);
expect
(
TRUE
,
res
);
GdipDeleteRegion
(
clip
);
GdipDeleteGraphics
(
graphics
);
...
...
include/gdiplusflat.h
View file @
ff88d4e1
...
...
@@ -157,6 +157,7 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics*,GpBrush*,GDIPCONST GpRect*,I
GpStatus
WINGDIPAPI
GdipGetCompositingMode
(
GpGraphics
*
,
CompositingMode
*
);
GpStatus
WINGDIPAPI
GdipGetClip
(
GpGraphics
*
,
GpRegion
*
);
GpStatus
WINGDIPAPI
GdipSetClipRegion
(
GpGraphics
*
,
GpRegion
*
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipResetClip
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetDC
(
GpGraphics
*
,
HDC
*
);
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