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
ed23e3de
Commit
ed23e3de
authored
Apr 07, 2011
by
Huw Davies
Committed by
Alexandre Julliard
Apr 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Initial SelectPen support.
parent
f3824783
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
69 additions
and
1 deletion
+69
-1
Makefile.in
dlls/gdi32/Makefile.in
+1
-0
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-1
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+2
-0
objects.c
dlls/gdi32/dibdrv/objects.c
+62
-0
gdi_private.h
dlls/gdi32/gdi_private.h
+3
-0
No files found.
dlls/gdi32/Makefile.in
View file @
ed23e3de
...
...
@@ -15,6 +15,7 @@ C_SRCS = \
dc.c
\
dib.c
\
dibdrv/dc.c
\
dibdrv/objects.c
\
dibdrv/primitives.c
\
driver.c
\
enhmetafile.c
\
...
...
dlls/gdi32/dibdrv/dc.c
View file @
ed23e3de
...
...
@@ -207,7 +207,7 @@ const DC_FUNCTIONS dib_driver =
NULL
,
/* pSelectClipPath */
NULL
,
/* pSelectFont */
NULL
,
/* pSelectPalette */
NULL
,
/* pSelectPen */
dibdrv_SelectPen
,
/* pSelectPen */
NULL
,
/* pSetArcDirection */
NULL
,
/* pSetBitmapBits */
NULL
,
/* pSetBkColor */
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
ed23e3de
...
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
extern
HPEN
CDECL
dibdrv_SelectPen
(
PHYSDEV
dev
,
HPEN
hpen
)
DECLSPEC_HIDDEN
;
static
inline
dibdrv_physdev
*
get_dibdrv_pdev
(
PHYSDEV
dev
)
{
return
(
dibdrv_physdev
*
)
dev
;
...
...
dlls/gdi32/dibdrv/objects.c
0 → 100644
View file @
ed23e3de
/*
* DIB driver GDI objects.
*
* Copyright 2011 Huw Davies
*
* 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 "gdi_private.h"
#include "dibdrv.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dib
);
/***********************************************************************
* dibdrv_SelectPen
*/
HPEN
CDECL
dibdrv_SelectPen
(
PHYSDEV
dev
,
HPEN
hpen
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectPen
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
LOGPEN
logpen
;
TRACE
(
"(%p, %p)
\n
"
,
dev
,
hpen
);
if
(
!
GetObjectW
(
hpen
,
sizeof
(
logpen
),
&
logpen
))
{
/* must be an extended pen */
EXTLOGPEN
*
elp
;
INT
size
=
GetObjectW
(
hpen
,
0
,
NULL
);
if
(
!
size
)
return
0
;
elp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
GetObjectW
(
hpen
,
size
,
elp
);
/* FIXME: add support for user style pens */
logpen
.
lopnStyle
=
elp
->
elpPenStyle
;
logpen
.
lopnWidth
.
x
=
elp
->
elpWidth
;
logpen
.
lopnWidth
.
y
=
0
;
logpen
.
lopnColor
=
elp
->
elpColor
;
HeapFree
(
GetProcessHeap
(),
0
,
elp
);
}
pdev
->
pen_color
=
pdev
->
dib
.
funcs
->
colorref_to_pixel
(
&
pdev
->
dib
,
logpen
.
lopnColor
);
return
next
->
funcs
->
pSelectPen
(
next
,
hpen
);
}
dlls/gdi32/gdi_private.h
View file @
ed23e3de
...
...
@@ -96,6 +96,9 @@ typedef struct dibdrv_physdev
{
struct
gdi_physdev
dev
;
dib_info
dib
;
/* pen */
DWORD
pen_color
;
}
dibdrv_physdev
;
typedef
struct
tagDC_FUNCS
...
...
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