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
3ea77f5c
Commit
3ea77f5c
authored
Aug 07, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreateStreamOnFile.
parent
7a9a30d9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
2 deletions
+45
-2
Makefile.in
dlls/gdiplus/Makefile.in
+1
-1
gdiplus.c
dlls/gdiplus/gdiplus.c
+17
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
graphics.c
dlls/gdiplus/graphics.c
+24
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
3ea77f5c
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
gdiplus.dll
IMPORTLIB
=
libgdiplus.
$(IMPLIBEXT)
IMPORTS
=
oleaut32 ole32 user32 gdi32 advapi32 kernel32 ntdll
IMPORTS
=
shlwapi
oleaut32 ole32 user32 gdi32 advapi32 kernel32 ntdll
EXTRALIBS
=
-luuid
C_SRCS
=
\
...
...
dlls/gdiplus/gdiplus.c
View file @
3ea77f5c
...
...
@@ -27,6 +27,9 @@
#include "objbase.h"
#include "winreg.h"
#include "shlwapi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
...
...
@@ -246,3 +249,17 @@ REAL gdiplus_atan2(REAL dy, REAL dx)
return
atan2
(
dy
,
dx
);
}
GpStatus
hresult_to_status
(
HRESULT
res
)
{
switch
(
res
){
case
S_OK
:
return
Ok
;
case
E_OUTOFMEMORY
:
return
OutOfMemory
;
case
E_INVALIDARG
:
return
InvalidParameter
;
default:
return
GenericError
;
}
}
dlls/gdiplus/gdiplus.spec
View file @
3ea77f5c
...
...
@@ -129,7 +129,7 @@
@ stub GdipCreateRegionRectI
@ stub GdipCreateRegionRgnData
@ stdcall GdipCreateSolidFill(long ptr)
@ st
ub GdipCreateStreamOnFile
@ st
dcall GdipCreateStreamOnFile(ptr long ptr)
@ stub GdipCreateStringFormat
@ stub GdipCreateTexture2
@ stub GdipCreateTexture2I
...
...
dlls/gdiplus/gdiplus_private.h
View file @
3ea77f5c
...
...
@@ -41,6 +41,7 @@ COLORREF ARGB2COLORREF(ARGB color);
extern
INT
arc2polybezier
(
GpPointF
*
points
,
REAL
x1
,
REAL
y1
,
REAL
x2
,
REAL
y2
,
REAL
startAngle
,
REAL
sweepAngle
);
extern
REAL
gdiplus_atan2
(
REAL
dy
,
REAL
dx
);
extern
GpStatus
hresult_to_status
(
HRESULT
res
);
static
inline
INT
roundr
(
REAL
x
)
{
...
...
dlls/gdiplus/graphics.c
View file @
3ea77f5c
...
...
@@ -30,6 +30,9 @@
#include "olectl.h"
#include "ole2.h"
#include "winreg.h"
#include "shlwapi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
...
...
@@ -873,6 +876,27 @@ end:
return
retval
;
}
GpStatus
WINGDIPAPI
GdipCreateStreamOnFile
(
GDIPCONST
WCHAR
*
filename
,
UINT
access
,
IStream
**
stream
)
{
DWORD
dwMode
;
HRESULT
ret
;
if
(
!
stream
||
!
filename
)
return
InvalidParameter
;
if
(
access
&
GENERIC_WRITE
)
dwMode
=
STGM_SHARE_DENY_WRITE
|
STGM_WRITE
|
STGM_CREATE
;
else
if
(
access
&
GENERIC_READ
)
dwMode
=
STGM_SHARE_DENY_WRITE
|
STGM_READ
|
STGM_FAILIFTHERE
;
else
return
InvalidParameter
;
ret
=
SHCreateStreamOnFileW
(
filename
,
dwMode
,
stream
);
return
hresult_to_status
(
ret
);
}
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
graphics
)
{
if
(
!
graphics
)
return
InvalidParameter
;
...
...
include/gdiplusflat.h
View file @
3ea77f5c
...
...
@@ -52,6 +52,7 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND,GpGraphics**);
GpStatus
WINGDIPAPI
GdipCreateMetafileFromEmf
(
HENHMETAFILE
,
BOOL
,
GpMetafile
**
);
GpStatus
WINGDIPAPI
GdipCreateMetafileFromWmf
(
HMETAFILE
,
BOOL
,
GDIPCONST
WmfPlaceableFileHeader
*
,
GpMetafile
**
);
GpStatus
WINGDIPAPI
GdipCreateStreamOnFile
(
GDIPCONST
WCHAR
*
,
UINT
,
IStream
**
);
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
);
GpStatus
WINGDIPAPI
GdipDrawArc
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawBezier
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
...
...
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