From 3a25109fe1cb32063f5e78ad01963ee27d9885a9 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 11 Oct 2023 13:59:08 +0200 Subject: [PATCH] fix compile error with CAIRO on Windows: dest_x and dest_y should be idx1 and idy1, respectively in my_cairo_fill --- src/draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw.c b/src/draw.c index 6d80ec9d..83864944 100644 --- a/src/draw.c +++ b/src/draw.c @@ -3918,7 +3918,7 @@ void MyXCopyAreaDouble(Display* display, Drawable src, Drawable dest, GC gc, #if !defined(__unix__) XCopyArea(display, src, dest, gc, (int)isx1, (int)isy1, width, height, (int)idx1, (int)idy1); #if HAS_CAIRO==1 - my_cairo_fill(xctx->cairo_save_sfc, dest_x, dest_y, width, height); + my_cairo_fill(xctx->cairo_save_sfc, (int)idx1, (int)idy1, width, height); #endif #else XCopyArea(display, src, dest, gc, (int)isx1, (int)isy1, width, height, (int)idx1, (int)idy1);