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
8d9c4867
Commit
8d9c4867
authored
Sep 25, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipSetClipRect/GdipSetClipRectI.
parent
31847cf3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
7 deletions
+29
-7
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+25
-6
graphics.c
dlls/gdiplus/tests/graphics.c
+2
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8d9c4867
...
@@ -509,7 +509,7 @@
...
@@ -509,7 +509,7 @@
@ stub GdipSetClipGraphics
@ stub GdipSetClipGraphics
@ stub GdipSetClipHrgn
@ stub GdipSetClipHrgn
@ stub GdipSetClipPath
@ stub GdipSetClipPath
@ st
ub GdipSetClipRect
@ st
dcall GdipSetClipRect(ptr long long long long long)
@ stdcall GdipSetClipRectI(ptr long long long long long)
@ stdcall GdipSetClipRectI(ptr long long long long long)
@ stdcall GdipSetClipRegion(ptr ptr long)
@ stdcall GdipSetClipRegion(ptr ptr long)
@ stdcall GdipSetCompositingMode(ptr long)
@ stdcall GdipSetCompositingMode(ptr long)
...
...
dlls/gdiplus/graphics.c
View file @
8d9c4867
...
@@ -2948,11 +2948,33 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
...
@@ -2948,11 +2948,33 @@ GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
return
GdipTranslateMatrix
(
graphics
->
worldtrans
,
dx
,
dy
,
order
);
return
GdipTranslateMatrix
(
graphics
->
worldtrans
,
dx
,
dy
,
order
);
}
}
GpStatus
WINGDIPAPI
GdipSetClipRect
(
GpGraphics
*
graphics
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
,
CombineMode
mode
)
{
GpRectF
rect
;
TRACE
(
"(%p, %.2f, %.2f, %.2f, %.2f, %d)
\n
"
,
graphics
,
x
,
y
,
width
,
height
,
mode
);
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
rect
.
X
=
x
;
rect
.
Y
=
y
;
rect
.
Width
=
width
;
rect
.
Height
=
height
;
return
GdipCombineRegionRect
(
graphics
->
clip
,
&
rect
,
mode
);
}
GpStatus
WINGDIPAPI
GdipSetClipRectI
(
GpGraphics
*
graphics
,
INT
x
,
INT
y
,
GpStatus
WINGDIPAPI
GdipSetClipRectI
(
GpGraphics
*
graphics
,
INT
x
,
INT
y
,
INT
width
,
INT
height
,
INT
width
,
INT
height
,
CombineMode
combineM
ode
)
CombineMode
m
ode
)
{
{
static
int
calls
;
TRACE
(
"(%p, %d, %d, %d, %d, %d)
\n
"
,
graphics
,
x
,
y
,
width
,
height
,
mode
)
;
if
(
!
graphics
)
if
(
!
graphics
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -2960,10 +2982,7 @@ GpStatus WINGDIPAPI GdipSetClipRectI(GpGraphics *graphics, INT x, INT y,
...
@@ -2960,10 +2982,7 @@ GpStatus WINGDIPAPI GdipSetClipRectI(GpGraphics *graphics, INT x, INT y,
if
(
graphics
->
busy
)
if
(
graphics
->
busy
)
return
ObjectBusy
;
return
ObjectBusy
;
if
(
!
(
calls
++
))
return
GdipSetClipRect
(
graphics
,
(
REAL
)
x
,
(
REAL
)
y
,
(
REAL
)
width
,
(
REAL
)
height
,
mode
);
FIXME
(
"not implemented
\n
"
);
return
NotImplemented
;
}
}
GpStatus
WINGDIPAPI
GdipSetClipRegion
(
GpGraphics
*
graphics
,
GpRegion
*
region
,
GpStatus
WINGDIPAPI
GdipSetClipRegion
(
GpGraphics
*
graphics
,
GpRegion
*
region
,
...
...
dlls/gdiplus/tests/graphics.c
View file @
8d9c4867
...
@@ -706,6 +706,8 @@ static void test_Get_Release_DC(void)
...
@@ -706,6 +706,8 @@ static void test_Get_Release_DC(void)
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipTranslateWorldTransform
(
graphics
,
0
.
0
,
0
.
0
,
MatrixOrderPrepend
);
status
=
GdipTranslateWorldTransform
(
graphics
,
0
.
0
,
0
.
0
,
MatrixOrderPrepend
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipRect
(
graphics
,
0
.
0
,
0
.
0
,
10
.
0
,
10
.
0
,
CombineModeReplace
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipRectI
(
graphics
,
0
,
0
,
10
,
10
,
CombineModeReplace
);
status
=
GdipSetClipRectI
(
graphics
,
0
,
0
,
10
,
10
,
CombineModeReplace
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipSetClipRegion
(
graphics
,
clip
,
CombineModeReplace
);
status
=
GdipSetClipRegion
(
graphics
,
clip
,
CombineModeReplace
);
...
...
include/gdiplusflat.h
View file @
8d9c4867
...
@@ -533,6 +533,7 @@ GpStatus WINGDIPAPI GdipTranslateRegionI(GpRegion *, INT, INT);
...
@@ -533,6 +533,7 @@ GpStatus WINGDIPAPI GdipTranslateRegionI(GpRegion *, INT, INT);
GpStatus
WINGDIPAPI
GdipFlush
(
GpGraphics
*
,
GpFlushIntention
);
GpStatus
WINGDIPAPI
GdipFlush
(
GpGraphics
*
,
GpFlushIntention
);
GpStatus
WINGDIPAPI
GdipSetMetafileDownLevelRasterizationLimit
(
GpMetafile
*
,
UINT
);
GpStatus
WINGDIPAPI
GdipSetMetafileDownLevelRasterizationLimit
(
GpMetafile
*
,
UINT
);
GpStatus
WINGDIPAPI
GdipSetClipRect
(
GpGraphics
*
,
REAL
,
REAL
,
REAL
,
REAL
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipSetClipRectI
(
GpGraphics
*
,
INT
,
INT
,
INT
,
INT
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipSetClipRectI
(
GpGraphics
*
,
INT
,
INT
,
INT
,
INT
,
CombineMode
);
GpStatus
WINGDIPAPI
GdipFillRegion
(
GpGraphics
*
,
GpBrush
*
,
GpRegion
*
);
GpStatus
WINGDIPAPI
GdipFillRegion
(
GpGraphics
*
,
GpBrush
*
,
GpRegion
*
);
...
...
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