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
ccc3b9ca
Commit
ccc3b9ca
authored
Nov 23, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Get rid of the no longer needed path states.
parent
2201d088
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
path.c
dlls/gdi32/path.c
+0
-21
No files found.
dlls/gdi32/path.c
View file @
ccc3b9ca
...
...
@@ -81,16 +81,8 @@ typedef struct tagFLOAT_POINT
double
x
,
y
;
}
FLOAT_POINT
;
typedef
enum
{
PATH_Null
,
PATH_Open
,
PATH_Closed
}
GdiPathState
;
typedef
struct
gdi_path
{
GdiPathState
state
;
POINT
*
pPoints
;
BYTE
*
pFlags
;
int
numEntriesUsed
,
numEntriesAllocated
;
...
...
@@ -149,7 +141,6 @@ static struct gdi_path *alloc_gdi_path(void)
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
NULL
;
}
path
->
state
=
PATH_Open
;
path
->
numEntriesUsed
=
0
;
path
->
numEntriesAllocated
=
NUM_ENTRIES_INITIAL
;
path
->
newStroke
=
TRUE
;
...
...
@@ -165,7 +156,6 @@ static struct gdi_path *copy_gdi_path( const struct gdi_path *src_path )
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
return
NULL
;
}
path
->
state
=
src_path
->
state
;
path
->
numEntriesUsed
=
path
->
numEntriesAllocated
=
src_path
->
numEntriesUsed
;
path
->
newStroke
=
src_path
->
newStroke
;
path
->
pPoints
=
HeapAlloc
(
GetProcessHeap
(),
0
,
path
->
numEntriesUsed
*
sizeof
(
*
path
->
pPoints
)
);
...
...
@@ -253,10 +243,6 @@ static BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, BYTE flags)
*/
TRACE
(
"(%d,%d) - %d
\n
"
,
pPoint
->
x
,
pPoint
->
y
,
flags
);
/* Check that path is open */
if
(
pPath
->
state
!=
PATH_Open
)
return
FALSE
;
/* Reserve enough memory for an extra path entry */
if
(
!
PATH_ReserveEntries
(
pPath
,
pPath
->
numEntriesUsed
+
1
))
return
FALSE
;
...
...
@@ -388,7 +374,6 @@ static struct gdi_path *PATH_FlattenPath(const struct gdi_path *pPath)
break
;
}
}
new_path
->
state
=
PATH_Closed
;
return
new_path
;
}
...
...
@@ -836,7 +821,6 @@ static BOOL pathdrv_EndPath( PHYSDEV dev )
if
(
!
dc
)
return
FALSE
;
dc
->
path
=
physdev
->
path
;
dc
->
path
->
state
=
PATH_Closed
;
pop_path_driver
(
dc
,
physdev
);
release_dc_ptr
(
dc
);
return
TRUE
;
...
...
@@ -1818,9 +1802,6 @@ static struct gdi_path *PATH_WidenPath(DC *dc)
}
switch
(
flat_path
->
pFlags
[
i
])
{
case
PT_MOVETO
:
if
(
numStrokes
>
0
)
{
pStrokes
[
numStrokes
-
1
]
->
state
=
PATH_Closed
;
}
numStrokes
++
;
j
=
0
;
if
(
numStrokes
==
1
)
...
...
@@ -2040,8 +2021,6 @@ static struct gdi_path *PATH_WidenPath(DC *dc)
}
HeapFree
(
GetProcessHeap
(),
0
,
pStrokes
);
free_gdi_path
(
flat_path
);
pNewPath
->
state
=
PATH_Closed
;
return
pNewPath
;
}
...
...
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