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
418424d3
Commit
418424d3
authored
Oct 28, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add path entry points for functions that behave differently with an open path.
parent
e5db8969
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
21 deletions
+33
-21
path.c
dlls/gdi32/path.c
+33
-21
No files found.
dlls/gdi32/path.c
View file @
418424d3
...
...
@@ -804,6 +804,16 @@ BOOL WINAPI SelectClipPath(HDC hdc, INT iMode)
/***********************************************************************
* pathdrv_BeginPath
*/
static
BOOL
pathdrv_BeginPath
(
PHYSDEV
dev
)
{
/* path already open, nothing to do */
return
TRUE
;
}
/***********************************************************************
* pathdrv_AbortPath
*/
static
BOOL
pathdrv_AbortPath
(
PHYSDEV
dev
)
...
...
@@ -1588,6 +1598,21 @@ static BOOL pathdrv_ExtTextOut( PHYSDEV dev, INT x, INT y, UINT flags, const REC
}
/*************************************************************
* pathdrv_CloseFigure
*/
static
BOOL
pathdrv_CloseFigure
(
PHYSDEV
dev
)
{
struct
path_physdev
*
physdev
=
get_path_physdev
(
dev
);
/* Set PT_CLOSEFIGURE on the last entry and start a new stroke */
/* It is not necessary to draw a line, PT_CLOSEFIGURE is a virtual closing line itself */
if
(
physdev
->
path
->
numEntriesUsed
)
physdev
->
path
->
pFlags
[
physdev
->
path
->
numEntriesUsed
-
1
]
|=
PT_CLOSEFIGURE
;
return
TRUE
;
}
/*******************************************************************
* FlattenPath [GDI32.@]
*
...
...
@@ -2113,14 +2138,10 @@ BOOL nulldrv_BeginPath( PHYSDEV dev )
{
DC
*
dc
=
get_nulldrv_dc
(
dev
);
/* If path is already open, do nothing */
if
(
dc
->
path
.
state
!=
PATH_Open
)
{
if
(
!
path_driver
.
pCreateDC
(
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
return
FALSE
;
PATH_EmptyPath
(
&
dc
->
path
);
dc
->
path
.
newStroke
=
TRUE
;
dc
->
path
.
state
=
PATH_Open
;
}
if
(
!
path_driver
.
pCreateDC
(
&
dc
->
physDev
,
NULL
,
NULL
,
NULL
,
NULL
))
return
FALSE
;
PATH_EmptyPath
(
&
dc
->
path
);
dc
->
path
.
newStroke
=
TRUE
;
dc
->
path
.
state
=
PATH_Open
;
return
TRUE
;
}
...
...
@@ -2140,17 +2161,8 @@ BOOL nulldrv_AbortPath( PHYSDEV dev )
BOOL
nulldrv_CloseFigure
(
PHYSDEV
dev
)
{
DC
*
dc
=
get_nulldrv_dc
(
dev
);
if
(
dc
->
path
.
state
!=
PATH_Open
)
{
SetLastError
(
ERROR_CAN_NOT_COMPLETE
);
return
FALSE
;
}
/* Set PT_CLOSEFIGURE on the last entry and start a new stroke */
/* It is not necessary to draw a line, PT_CLOSEFIGURE is a virtual closing line itself */
if
(
dc
->
path
.
numEntriesUsed
)
dc
->
path
.
pFlags
[
dc
->
path
.
numEntriesUsed
-
1
]
|=
PT_CLOSEFIGURE
;
return
TRUE
;
SetLastError
(
ERROR_CAN_NOT_COMPLETE
);
return
FALSE
;
}
BOOL
nulldrv_SelectClipPath
(
PHYSDEV
dev
,
INT
mode
)
...
...
@@ -2248,11 +2260,11 @@ const struct gdi_dc_funcs path_driver =
pathdrv_AngleArc
,
/* pAngleArc */
pathdrv_Arc
,
/* pArc */
pathdrv_ArcTo
,
/* pArcTo */
NULL
,
/* pBeginPath */
pathdrv_BeginPath
,
/* pBeginPath */
NULL
,
/* pBlendImage */
NULL
,
/* pChoosePixelFormat */
pathdrv_Chord
,
/* pChord */
NULL
,
/* pCloseFigure */
pathdrv_CloseFigure
,
/* pCloseFigure */
NULL
,
/* pCreateBitmap */
NULL
,
/* pCreateCompatibleDC */
pathdrv_CreateDC
,
/* pCreateDC */
...
...
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