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
55ec1d91
Commit
55ec1d91
authored
Jul 24, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Store color key information in ImageAttributes.
parent
e0d9d175
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+7
-0
imageattributes.c
dlls/gdiplus/imageattributes.c
+6
-5
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
55ec1d91
...
@@ -223,8 +223,15 @@ struct GpCachedBitmap{
...
@@ -223,8 +223,15 @@ struct GpCachedBitmap{
GpImage
*
image
;
GpImage
*
image
;
};
};
struct
color_key
{
BOOL
enabled
;
ARGB
low
;
ARGB
high
;
};
struct
GpImageAttributes
{
struct
GpImageAttributes
{
WrapMode
wrap
;
WrapMode
wrap
;
struct
color_key
colorkeys
[
ColorAdjustTypeCount
];
};
};
struct
GpFont
{
struct
GpFont
{
...
...
dlls/gdiplus/imageattributes.c
View file @
55ec1d91
...
@@ -68,15 +68,16 @@ GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)
...
@@ -68,15 +68,16 @@ GpStatus WINGDIPAPI GdipDisposeImageAttributes(GpImageAttributes *imageattr)
GpStatus
WINGDIPAPI
GdipSetImageAttributesColorKeys
(
GpImageAttributes
*
imageattr
,
GpStatus
WINGDIPAPI
GdipSetImageAttributesColorKeys
(
GpImageAttributes
*
imageattr
,
ColorAdjustType
type
,
BOOL
enableFlag
,
ARGB
colorLow
,
ARGB
colorHigh
)
ColorAdjustType
type
,
BOOL
enableFlag
,
ARGB
colorLow
,
ARGB
colorHigh
)
{
{
static
int
calls
;
TRACE
(
"(%p,%u,%i,%08x,%08x)
\n
"
,
imageattr
,
type
,
enableFlag
,
colorLow
,
colorHigh
)
;
if
(
!
imageattr
)
if
(
!
imageattr
||
type
>=
ColorAdjustTypeCount
)
return
InvalidParameter
;
return
InvalidParameter
;
if
(
!
(
calls
++
))
imageattr
->
colorkeys
[
type
].
enabled
=
enableFlag
;
FIXME
(
"not implemented
\n
"
);
imageattr
->
colorkeys
[
type
].
low
=
colorLow
;
imageattr
->
colorkeys
[
type
].
high
=
colorHigh
;
return
NotImplemented
;
return
Ok
;
}
}
GpStatus
WINGDIPAPI
GdipSetImageAttributesColorMatrix
(
GpImageAttributes
*
imageattr
,
GpStatus
WINGDIPAPI
GdipSetImageAttributesColorMatrix
(
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