Module: wine Branch: master Commit: 31d7e943420b7ff5ea1250d04f30dfad8d168f27 URL: https://gitlab.winehq.org/wine/wine/-/commit/31d7e943420b7ff5ea1250d04f30dfa...
Author: Piotr Caban piotr@codeweavers.com Date: Sun Mar 26 12:12:42 2023 +0200
wineps: Handle EMR_POLYGON16 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 116d540b303..4475da96560 100644 --- a/dlls/wineps.drv/printproc.c +++ b/dlls/wineps.drv/printproc.c @@ -341,6 +341,23 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable, free(pts); return i; } + case EMR_POLYGON16: + { + const EMRPOLYGON16 *p = (const EMRPOLYGON16 *)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_PolyPolygon(&data->pdev->dev, pts, (const INT *)&p->cpts, 1); + free(pts); + return i; + } case EMR_CREATEMONOBRUSH: { const EMRCREATEMONOBRUSH *p = (const EMRCREATEMONOBRUSH *)rec;