Module: wine Branch: master Commit: eeb8d8106c25964c5571b7059c1ce9346a13bea0 URL: https://gitlab.winehq.org/wine/wine/-/commit/eeb8d8106c25964c5571b7059c1ce93...
Author: Piotr Caban piotr@codeweavers.com Date: Sun Mar 26 12:11:42 2023 +0200
wineps: Handle EMR_POLYBEZIER16 record in spool files.
---
dlls/wineps.drv/printproc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
diff --git a/dlls/wineps.drv/printproc.c b/dlls/wineps.drv/printproc.c index 4c13801b580..116d540b303 100644 --- a/dlls/wineps.drv/printproc.c +++ b/dlls/wineps.drv/printproc.c @@ -324,6 +324,23 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable, } return ret; } + case EMR_POLYBEZIER16: + { + const EMRPOLYBEZIER16 *p = (const EMRPOLYBEZIER16 *)rec; + POINT *pts; + int i; + + pts = malloc(sizeof(*pts) * p->cpts); + if (!pts) return 0; + for (i = 0; i < p->cpts; i++) + { + pts[i].x = p->apts[i].x; + pts[i].y = p->apts[i].y; + } + i = PSDRV_PolyBezier(&data->pdev->dev, pts, p->cpts); + free(pts); + return i; + } case EMR_CREATEMONOBRUSH: { const EMRCREATEMONOBRUSH *p = (const EMRCREATEMONOBRUSH *)rec;