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
eb18ce9d
Commit
eb18ce9d
authored
May 09, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreateFromHWNDICM (no icm yet) with test.
parent
888262ed
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+6
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+5
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
eb18ce9d
...
...
@@ -92,7 +92,7 @@
@ stdcall GdipCreateFromHDC2(long long ptr)
@ stdcall GdipCreateFromHDC(long ptr)
@ stdcall GdipCreateFromHWND(long ptr)
@ st
ub GdipCreateFromHWNDICM
@ st
dcall GdipCreateFromHWNDICM(long ptr)
@ stdcall GdipCreateHBITMAPFromBitmap(ptr ptr long)
@ stub GdipCreateHICONFromBitmap
@ stub GdipCreateHalftonePalette
...
...
dlls/gdiplus/graphics.c
View file @
eb18ce9d
...
...
@@ -797,6 +797,12 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
return
Ok
;
}
/* FIXME: no icm handling */
GpStatus
WINGDIPAPI
GdipCreateFromHWNDICM
(
HWND
hwnd
,
GpGraphics
**
graphics
)
{
return
GdipCreateFromHWND
(
hwnd
,
graphics
);
}
GpStatus
WINGDIPAPI
GdipCreateMetafileFromEmf
(
HENHMETAFILE
hemf
,
BOOL
delete
,
GpMetafile
**
metafile
)
{
...
...
dlls/gdiplus/tests/graphics.c
View file @
eb18ce9d
...
...
@@ -47,6 +47,11 @@ static void test_constructor_destructor(void)
stat
=
GdipDeleteGraphics
(
graphics
);
expect
(
Ok
,
stat
);
stat
=
GdipCreateFromHWNDICM
(
NULL
,
&
graphics
);
expect
(
Ok
,
stat
);
stat
=
GdipDeleteGraphics
(
graphics
);
expect
(
Ok
,
stat
);
stat
=
GdipDeleteGraphics
(
NULL
);
expect
(
InvalidParameter
,
stat
);
ReleaseDC
(
0
,
hdc
);
...
...
include/gdiplusflat.h
View file @
eb18ce9d
...
...
@@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipSetPenWidth(GpPen*,REAL);
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHDC2
(
HDC
,
HANDLE
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHWND
(
HWND
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateFromHWNDICM
(
HWND
,
GpGraphics
**
);
GpStatus
WINGDIPAPI
GdipCreateLineBrush
(
GDIPCONST
GpPointF
*
,
GDIPCONST
GpPointF
*
,
ARGB
,
ARGB
,
GpWrapMode
,
GpLineGradient
**
);
GpStatus
WINGDIPAPI
GdipCreateLineBrushI
(
GDIPCONST
GpPoint
*
,
GDIPCONST
GpPoint
*
,
...
...
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