Signed-off-by: Michael Stefaniuc mstefani@winehq.org --- x and y fields are doubles already.
dlls/gdi32/path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index a36077883d..d2d9ac90a9 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -461,8 +461,8 @@ static struct gdi_path *PATH_FlattenPath(const struct gdi_path *pPath) static void PATH_ScaleNormalizedPoint(FLOAT_POINT corners[], double x, double y, POINT *pPoint) { - pPoint->x=GDI_ROUND( (double)corners[0].x + (double)(corners[1].x-corners[0].x)*0.5*(x+1.0) ); - pPoint->y=GDI_ROUND( (double)corners[0].y + (double)(corners[1].y-corners[0].y)*0.5*(y+1.0) ); + pPoint->x = GDI_ROUND( corners[0].x + (corners[1].x-corners[0].x)*0.5*(x+1.0) ); + pPoint->y = GDI_ROUND( corners[0].y + (corners[1].y-corners[0].y)*0.5*(y+1.0) ); }
/* PATH_NormalizePoint @@ -474,8 +474,8 @@ static void PATH_NormalizePoint(FLOAT_POINT corners[], const FLOAT_POINT *pPoint, double *pX, double *pY) { - *pX=(double)(pPoint->x-corners[0].x)/(double)(corners[1].x-corners[0].x) * 2.0 - 1.0; - *pY=(double)(pPoint->y-corners[0].y)/(double)(corners[1].y-corners[0].y) * 2.0 - 1.0; + *pX = (pPoint->x-corners[0].x)/(corners[1].x-corners[0].x) * 2.0 - 1.0; + *pY = (pPoint->y-corners[0].y)/(corners[1].y-corners[0].y) * 2.0 - 1.0; }
/* PATH_DoArcPart
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=55344
Your paranoid android.
=== debian10 (32 bit Chinese:China report) ===
gdi32: font.c:6304: Test failed: expected vertical face for charset 128, got Droid Sans Fallback font.c:6304: Test failed: expected vertical face for charset 129, got Droid Sans Fallback font.c:6304: Test failed: expected vertical face for charset 130, got Droid Sans Fallback font.c:6304: Test failed: expected vertical face for charset 134, got Droid Sans Fallback font.c:6304: Test failed: expected vertical face for charset 136, got Droid Sans Fallback