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
cc0a676b
Commit
cc0a676b
authored
Jun 14, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Brush implementation.
parent
7e9d498d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
4 deletions
+71
-4
Makefile.in
dlls/gdiplus/Makefile.in
+1
-0
brush.c
dlls/gdiplus/brush.c
+57
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+3
-3
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+10
-1
No files found.
dlls/gdiplus/Makefile.in
View file @
cc0a676b
...
...
@@ -7,6 +7,7 @@ IMPORTLIB = libgdiplus.$(IMPLIBEXT)
IMPORTS
=
user32 gdi32 advapi32 kernel32 ntdll
C_SRCS
=
\
brush.c
\
gdiplus.c
\
graphics.c
\
pen.c
...
...
dlls/gdiplus/brush.c
0 → 100644
View file @
cc0a676b
/*
* 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 "windef.h"
#include "wingdi.h"
#include "gdiplus.h"
#include "gdiplus_private.h"
GpStatus
WINGDIPAPI
GdipCreateSolidFill
(
ARGB
color
,
GpSolidFill
**
sf
)
{
COLORREF
col
=
ARGB2COLORREF
(
color
);
if
(
!
sf
)
return
InvalidParameter
;
*
sf
=
GdipAlloc
(
sizeof
(
GpSolidFill
));
if
(
!*
sf
)
return
OutOfMemory
;
(
*
sf
)
->
brush
.
gdibrush
=
CreateSolidBrush
(
col
);
(
*
sf
)
->
brush
.
bt
=
BrushTypeSolidColor
;
(
*
sf
)
->
brush
.
color
=
col
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetBrushType
(
GpBrush
*
brush
,
GpBrushType
*
type
)
{
if
(
!
brush
||
!
type
)
return
InvalidParameter
;
*
type
=
brush
->
bt
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDeleteBrush
(
GpBrush
*
brush
)
{
if
(
!
brush
)
return
InvalidParameter
;
DeleteObject
(
brush
->
gdibrush
);
GdipFree
(
brush
);
return
Ok
;
}
dlls/gdiplus/gdiplus.spec
View file @
cc0a676b
...
...
@@ -119,7 +119,7 @@
@ stub GdipCreateRegionRect
@ stub GdipCreateRegionRectI
@ stub GdipCreateRegionRgnData
@ st
ub GdipCreateSolidFill
@ st
dcall GdipCreateSolidFill(long ptr)
@ stub GdipCreateStreamOnFile
@ stub GdipCreateStringFormat
@ stub GdipCreateTexture2
...
...
@@ -127,7 +127,7 @@
@ stub GdipCreateTexture
@ stub GdipCreateTextureIA
@ stub GdipCreateTextureIAI
@ st
ub GdipDeleteBrush
@ st
dcall GdipDeleteBrush(ptr)
@ stub GdipDeleteCachedBitmap
@ stub GdipDeleteCustomLineCap
@ stub GdipDeleteFont
...
...
@@ -228,7 +228,7 @@
@ stub GdipGetAdjustableArrowCapMiddleInset
@ stub GdipGetAdjustableArrowCapWidth
@ stub GdipGetAllPropertyItems
@ st
ub GdipGetBrushType
@ st
dcall GdipGetBrushType(ptr ptr)
@ stub GdipGetCellAscent
@ stub GdipGetCellDescent
@ stub GdipGetClip
...
...
dlls/gdiplus/gdiplus_private.h
View file @
cc0a676b
...
...
@@ -20,7 +20,6 @@
#define __WINE_GP_PRIVATE_H_
#include "windef.h"
#include "winbase.h"
#include "gdiplus.h"
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_ENDCAP_FLAT)
...
...
@@ -40,4 +39,14 @@ struct GpGraphics{
HWND
hwnd
;
};
struct
GpBrush
{
HBRUSH
gdibrush
;
GpBrushType
bt
;
COLORREF
color
;
};
struct
GpSolidFill
{
GpBrush
brush
;
};
#endif
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