Module: wine Branch: master Commit: e214d60449e1ee8aa92b21b6c6ead66e0d7e96c1 URL: https://gitlab.winehq.org/wine/wine/-/commit/e214d60449e1ee8aa92b21b6c6ead66...
Author: Piotr Caban piotr@codeweavers.com Date: Sun Mar 26 12:15:55 2023 +0200
wineps: Handle EMR_POLYPOLYLINE16 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 a4a9debe1e0..f153226d06f 100644 --- a/dlls/wineps.drv/printproc.c +++ b/dlls/wineps.drv/printproc.c @@ -414,6 +414,23 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable, free(pts); return i; } + case EMR_POLYPOLYLINE16: + { + const EMRPOLYPOLYLINE16 *p = (const EMRPOLYPOLYLINE16 *)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 = ((const POINTS *)(p->aPolyCounts + p->nPolys))[i].x; + pts[i].y = ((const POINTS *)(p->aPolyCounts + p->nPolys))[i].y; + } + i = PSDRV_PolyPolyline(&data->pdev->dev, pts, p->aPolyCounts, p->nPolys); + free(pts); + return i; + } case EMR_CREATEMONOBRUSH: { const EMRCREATEMONOBRUSH *p = (const EMRCREATEMONOBRUSH *)rec;