Module: wine Branch: master Commit: 3a1341aada897a2565dd773838918ce0a04f70da URL: https://gitlab.winehq.org/wine/wine/-/commit/3a1341aada897a2565dd773838918ce...
Author: Piotr Caban piotr@codeweavers.com Date: Thu Mar 23 18:28:39 2023 +0100
wineps: Handle EMR_ROUNDRECT record in spool files.
---
dlls/wineps.drv/printproc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/dlls/wineps.drv/printproc.c b/dlls/wineps.drv/printproc.c index 42dd28e7571..9a3de67489e 100644 --- a/dlls/wineps.drv/printproc.c +++ b/dlls/wineps.drv/printproc.c @@ -217,6 +217,14 @@ static int WINAPI hmf_proc(HDC hdc, HANDLETABLE *htable, return PSDRV_Rectangle(&data->pdev->dev, rect->rclBox.left, rect->rclBox.top, rect->rclBox.right, rect->rclBox.bottom); } + case EMR_ROUNDRECT: + { + const EMRROUNDRECT *p = (const EMRROUNDRECT *)rec; + + return PSDRV_RoundRect(&data->pdev->dev, p->rclBox.left, + p->rclBox.top, p->rclBox.right, p->rclBox.bottom, + p->szlCorner.cx, p->szlCorner.cy); + } case EMR_LINETO: { const EMRLINETO *line = (const EMRLINETO *)rec;