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
0ae0c0c0
Commit
0ae0c0c0
authored
May 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
May 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipSetImageAttributesWrapMode.
parent
15ebd84d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+2
-0
graphics.c
dlls/gdiplus/graphics.c
+10
-1
imageattributes.c
dlls/gdiplus/imageattributes.c
+7
-6
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
0ae0c0c0
...
...
@@ -296,6 +296,8 @@ struct color_remap_table{
struct
GpImageAttributes
{
WrapMode
wrap
;
ARGB
outside_color
;
BOOL
clamp
;
struct
color_key
colorkeys
[
ColorAdjustTypeCount
];
struct
color_matrix
colormatrices
[
ColorAdjustTypeCount
];
struct
color_remap_table
colorremaptables
[
ColorAdjustTypeCount
];
...
...
dlls/gdiplus/graphics.c
View file @
0ae0c0c0
...
...
@@ -2049,6 +2049,16 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
stride
=
sizeof
(
ARGB
)
*
(
dst_area
.
right
-
dst_area
.
left
);
if
(
imageAttributes
&&
(
imageAttributes
->
wrap
!=
WrapModeClamp
||
imageAttributes
->
outside_color
!=
0x00000000
||
imageAttributes
->
clamp
))
{
static
int
fixme
;
if
(
!
fixme
++
)
FIXME
(
"Image wrap mode not implemented
\n
"
);
}
for
(
x
=
dst_area
.
left
;
x
<
dst_area
.
right
;
x
++
)
{
for
(
y
=
dst_area
.
top
;
y
<
dst_area
.
bottom
;
y
++
)
...
...
@@ -2069,7 +2079,6 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
if
(
src_x
<
src_area
.
left
||
src_x
>=
src_area
.
right
||
src_y
<
src_area
.
top
||
src_y
>=
src_area
.
bottom
)
/* FIXME: Use wrapmode */
*
src_color
=
0
;
else
GdipBitmapGetPixel
(
bitmap
,
src_x
,
src_y
,
src_color
);
...
...
dlls/gdiplus/imageattributes.c
View file @
0ae0c0c0
...
...
@@ -53,6 +53,8 @@ GpStatus WINGDIPAPI GdipCreateImageAttributes(GpImageAttributes **imageattr)
*
imageattr
=
GdipAlloc
(
sizeof
(
GpImageAttributes
));
if
(
!*
imageattr
)
return
OutOfMemory
;
(
*
imageattr
)
->
wrap
=
WrapModeClamp
;
TRACE
(
"<-- %p
\n
"
,
*
imageattr
);
return
Ok
;
...
...
@@ -120,17 +122,16 @@ GpStatus WINGDIPAPI GdipSetImageAttributesColorMatrix(GpImageAttributes *imageat
GpStatus
WINGDIPAPI
GdipSetImageAttributesWrapMode
(
GpImageAttributes
*
imageAttr
,
WrapMode
wrap
,
ARGB
argb
,
BOOL
clamp
)
{
static
int
calls
;
TRACE
(
"(%p,%u,%08x,%i)
\n
"
,
imageAttr
,
wrap
,
argb
,
clamp
);
if
(
!
imageAttr
)
if
(
!
imageAttr
||
wrap
>
WrapModeClamp
)
return
InvalidParameter
;
if
(
!
(
calls
++
))
FIXME
(
"not implemented
\n
"
);
imageAttr
->
wrap
=
wrap
;
imageAttr
->
outside_color
=
argb
;
imageAttr
->
clamp
=
clamp
;
return
NotImplemented
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetImageAttributesCachedBackground
(
GpImageAttributes
*
imageAttr
,
...
...
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