From 89312683fa5686da5a9f85d0b10789ab24b2b6e4 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 6 May 2022 18:38:34 +0100 Subject: [PATCH] preliminary compatibility for gint 2.8 --- src/src/circuit.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/src/circuit.cc b/src/src/circuit.cc index ff6ccc2..7203688 100644 --- a/src/src/circuit.cc +++ b/src/src/circuit.cc @@ -1320,7 +1320,7 @@ void drawDecoration( uint16_t index ) int X = circuit[index]->X + circuit[index]->CumulatedCurve - 1.5*circuit[index]->W - image->width/2; int Y = circuit[index]->Y - image->height; - dimage( X, Y, image ); + dimage_p4_clearbg_alt( X, Y, image, 0, image->alpha ); } deco = circuit[index]->RDeco; @@ -1332,7 +1332,7 @@ void drawDecoration( uint16_t index ) int X = circuit[index]->X + circuit[index]->CumulatedCurve + 1.5*circuit[index]->W - image->width/2; int Y = circuit[index]->Y - image->height; - dimage( X, Y, image ); + dimage_p4_clearbg_alt( X, Y, image, 0, image->alpha ); } }