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
63ff31ea
Commit
63ff31ea
authored
Jul 30, 1999
by
Luc Tourangeau
Committed by
Alexandre Julliard
Jul 30, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a call to the newpath operator immediately before the arc
operator.
parent
cfbafe32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ps.c
graphics/psdrv/ps.c
+12
-0
psdrv.h
include/psdrv.h
+1
-0
No files found.
graphics/psdrv/ps.c
View file @
63ff31ea
...
...
@@ -152,6 +152,9 @@ static char psfill[] =
static
char
pseofill
[]
=
"eofill
\n
"
;
static
char
psnewpath
[]
=
"newpath
\n
"
;
static
char
psclosepath
[]
=
"closepath
\n
"
;
...
...
@@ -508,6 +511,10 @@ BOOL PSDRV_WriteArc(DC *dc, INT x, INT y, INT w, INT h, double ang1,
/* Make angles -ve and swap order because we're working with an upside
down y-axis */
sprintf
(
buf
,
psarc
,
x
,
y
,
w
,
h
,
-
ang2
,
-
ang1
);
/* Write newpath operator to ensure there's no line segment drawn
from the current point to the beginning of the arc. */
PSDRV_WriteNewPath
(
dc
);
return
PSDRV_WriteSpool
(
dc
,
buf
,
strlen
(
buf
));
}
...
...
@@ -679,6 +686,11 @@ BOOL PSDRV_WriteGRestore(DC *dc)
return
PSDRV_WriteSpool
(
dc
,
psgrestore
,
sizeof
(
psgrestore
)
-
1
);
}
BOOL
PSDRV_WriteNewPath
(
DC
*
dc
)
{
return
PSDRV_WriteSpool
(
dc
,
psnewpath
,
sizeof
(
psnewpath
)
-
1
);
}
BOOL
PSDRV_WriteClosePath
(
DC
*
dc
)
{
return
PSDRV_WriteSpool
(
dc
,
psclosepath
,
sizeof
(
psclosepath
)
-
1
);
...
...
include/psdrv.h
View file @
63ff31ea
...
...
@@ -286,6 +286,7 @@ extern BOOL PSDRV_WriteFill(DC *dc);
extern
BOOL
PSDRV_WriteEOFill
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteGSave
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteGRestore
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteNewPath
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteClosePath
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteClip
(
DC
*
dc
);
extern
BOOL
PSDRV_WriteRectClip
(
DC
*
dc
,
CHAR
*
pszArrayName
);
...
...
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