2 * Postscript driver graphics functions
4 * Copyright 1998 Huw D M Davies
14 /**********************************************************************
17 BOOL32
PSDRV_MoveToEx(DC
*dc
, INT32 x
, INT32 y
, LPPOINT32 pt
)
19 TRACE(psdrv
, "%d %d\n", x
, y
);
22 pt
->x
= dc
->w
.CursPosX
;
23 pt
->y
= dc
->w
.CursPosY
;
28 return PSDRV_WriteMoveTo(dc
, XLPTODP(dc
, x
), YLPTODP(dc
, y
));
31 /***********************************************************************
34 BOOL32
PSDRV_LineTo(DC
*dc
, INT32 x
, INT32 y
)
36 TRACE(psdrv
, "%d %d\n", x
, y
);
38 PSDRV_WriteLineTo(dc
, XLPTODP(dc
, x
), YLPTODP(dc
, y
));
39 PSDRV_WriteStroke(dc
);
46 /***********************************************************************
49 BOOL32
PSDRV_Rectangle(DC
*dc
, INT32 left
, INT32 top
, INT32 right
,
52 INT32 width
= XLSTODS(dc
, right
- left
);
53 INT32 height
= YLSTODS(dc
, bottom
- top
);
56 TRACE(psdrv
, "%d %d - %d %d\n", left
, top
, right
, bottom
);
58 PSDRV_WriteRectangle(dc
, XLPTODP(dc
, left
), YLPTODP(dc
, top
),
60 PSDRV_WriteStroke(dc
);
65 /***********************************************************************
68 BOOL32
PSDRV_Ellipse( DC
*dc
, INT32 left
, INT32 top
, INT32 right
, INT32 bottom
)
70 TRACE(psdrv
, "%d %d - %d %d\n", left
, top
, right
, bottom
);