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
d50be497
Commit
d50be497
authored
Jun 11, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added first GDI+ graphics implementation.
parent
fcd7a62e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
4 deletions
+77
-4
Makefile.in
dlls/gdiplus/Makefile.in
+2
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+3
-3
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+5
-0
graphics.c
dlls/gdiplus/graphics.c
+67
-0
No files found.
dlls/gdiplus/Makefile.in
View file @
d50be497
...
...
@@ -4,10 +4,11 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
gdiplus.dll
IMPORTLIB
=
libgdiplus.
$(IMPLIBEXT)
IMPORTS
=
gdi32 advapi32 kernel32 ntdll
IMPORTS
=
user32
gdi32 advapi32 kernel32 ntdll
C_SRCS
=
\
gdiplus.c
\
graphics.c
\
pen.c
@MAKE_DLL_RULES@
...
...
dlls/gdiplus/gdiplus.spec
View file @
d50be497
...
...
@@ -81,8 +81,8 @@
@ stub GdipCreateFontFromLogfontA
@ stub GdipCreateFontFromLogfontW
@ stub GdipCreateFromHDC2
@ st
ub GdipCreateFromHDC
@ st
ub GdipCreateFromHWND
@ st
dcall GdipCreateFromHDC(long ptr)
@ st
dcall GdipCreateFromHWND(long ptr)
@ stub GdipCreateFromHWNDICM
@ stub GdipCreateHBITMAPFromBitmap
@ stub GdipCreateHICONFromBitmap
...
...
@@ -132,7 +132,7 @@
@ stub GdipDeleteCustomLineCap
@ stub GdipDeleteFont
@ stub GdipDeleteFontFamily
@ st
ub GdipDeleteGraphics
@ st
dcall GdipDeleteGraphics(ptr)
@ stub GdipDeleteMatrix
@ stub GdipDeletePath
@ stub GdipDeletePathIter
...
...
dlls/gdiplus/gdiplus_private.h
View file @
d50be497
...
...
@@ -35,4 +35,9 @@ struct GpPen{
HPEN
gdipen
;
};
struct
GpGraphics
{
HDC
hdc
;
HWND
hwnd
;
};
#endif
dlls/gdiplus/graphics.c
0 → 100644
View file @
d50be497
/*
* Copyright (C) 2007 Google (Evan Stade)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
#include "wine/debug.h"
GpStatus
WINGDIPAPI
GdipCreateFromHDC
(
HDC
hdc
,
GpGraphics
**
graphics
)
{
if
(
hdc
==
NULL
)
return
OutOfMemory
;
if
(
graphics
==
NULL
)
return
InvalidParameter
;
*
graphics
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
GpGraphics
));
(
*
graphics
)
->
hdc
=
hdc
;
(
*
graphics
)
->
hwnd
=
NULL
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreateFromHWND
(
HWND
hwnd
,
GpGraphics
**
graphics
)
{
GpStatus
ret
;
if
((
ret
=
GdipCreateFromHDC
(
GetDC
(
hwnd
),
graphics
))
!=
Ok
)
return
ret
;
(
*
graphics
)
->
hwnd
=
hwnd
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDeleteGraphics
(
GpGraphics
*
graphics
)
{
if
(
!
graphics
)
return
InvalidParameter
;
if
(
graphics
->
hwnd
)
ReleaseDC
(
graphics
->
hwnd
,
graphics
->
hdc
);
HeapFree
(
GetProcessHeap
(),
0
,
graphics
);
return
Ok
;
}
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