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
63ae714f
Commit
63ae714f
authored
Dec 11, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Stub for GdipGetNearestColor.
parent
0537a122
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+13
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+3
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
63ae714f
...
...
@@ -320,7 +320,7 @@
@ stdcall GdipGetMetafileHeaderFromMetafile(ptr ptr)
@ stub GdipGetMetafileHeaderFromStream
@ stub GdipGetMetafileHeaderFromWmf
@ st
ub GdipGetNearestColor
@ st
dcall GdipGetNearestColor(ptr ptr)
@ stdcall GdipGetPageScale(ptr ptr)
@ stdcall GdipGetPageUnit(ptr ptr)
@ stdcall GdipGetPathData(ptr ptr)
...
...
dlls/gdiplus/graphics.c
View file @
63ae714f
...
...
@@ -2456,6 +2456,19 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetNearestColor
(
GpGraphics
*
graphics
,
ARGB
*
argb
)
{
if
(
!
graphics
||
!
argb
)
return
InvalidParameter
;
if
(
graphics
->
busy
)
return
ObjectBusy
;
FIXME
(
"(%p, %p): stub
\n
"
,
graphics
,
argb
);
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipGetPageScale
(
GpGraphics
*
graphics
,
REAL
*
scale
)
{
TRACE
(
"(%p, %p)
\n
"
,
graphics
,
scale
);
...
...
dlls/gdiplus/tests/graphics.c
View file @
63ae714f
...
...
@@ -485,6 +485,7 @@ static void test_Get_Release_DC(void)
GpRegion
*
clip
;
INT
i
;
BOOL
res
;
ARGB
color
=
0x00000000
;
pt
[
0
].
X
=
10
;
pt
[
0
].
Y
=
10
;
...
...
@@ -658,6 +659,8 @@ static void test_Get_Release_DC(void)
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipGetInterpolationMode
(
graphics
,
&
intmode
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipGetNearestColor
(
graphics
,
&
color
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipGetPageScale
(
graphics
,
&
r
);
expect
(
ObjectBusy
,
status
);
status
=
Ok
;
status
=
GdipGetPageUnit
(
graphics
,
&
unit
);
...
...
include/gdiplusflat.h
View file @
63ae714f
...
...
@@ -196,6 +196,7 @@ GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics*,REAL*);
GpStatus
WINGDIPAPI
GdipGetDpiY
(
GpGraphics
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetImageGraphicsContext
(
GpImage
*
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
GpStatus
WINGDIPAPI
GdipGetNearestColor
(
GpGraphics
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipGetPageScale
(
GpGraphics
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetPageUnit
(
GpGraphics
*
,
GpUnit
*
);
GpStatus
WINGDIPAPI
GdipGetPixelOffsetMode
(
GpGraphics
*
,
PixelOffsetMode
*
);
...
...
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