From dbf901a4da32b5f6ff613c4d2e09b057fcf67010 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 28 Mar 2023 11:50:39 +0200 Subject: [PATCH] wineps: Support arc direction in PSDRV_DrawArc. --- dlls/wineps.drv/graphics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/wineps.drv/graphics.c b/dlls/wineps.drv/graphics.c index 3ea663ccb2d..94ae51d5764 100644 --- a/dlls/wineps.drv/graphics.c +++ b/dlls/wineps.drv/graphics.c @@ -226,7 +226,10 @@ static BOOL PSDRV_DrawArc( PHYSDEV dev, INT left, INT top, else PSDRV_WriteNewPath( dev ); - PSDRV_WriteArc(dev, x, y, w, h, start_angle, end_angle); + if(GetArcDirection(dev->hdc) == AD_COUNTERCLOCKWISE) + PSDRV_WriteArc(dev, x, y, w, h, start_angle, end_angle); + else + PSDRV_WriteArc(dev, x, y, w, h, end_angle, start_angle); if(lines == 1 || lines == 2) { /* chord or pie */ PSDRV_WriteClosePath(dev); PSDRV_Brush(dev,0); -- 2.11.4.GIT