From 306752eaeb35d34fbcb21043765f1833b016de41 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Tue, 3 Feb 2009 01:18:28 +0000 Subject: [PATCH] Fixed Contour to allow drawing single pixels git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@586 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- graph.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/graph.c b/graph.c index f3e2dc33..00496cb7 100644 --- a/graph.c +++ b/graph.c @@ -2148,6 +2148,13 @@ void Polyfill(int Vertices, short * Points, int Color) int Indice; byte *FX_Feedback_Ecran_avant_remplissage; + Afficher_pixel(Points[0],Points[1],Color); + if (Vertices==1) + { + Mettre_Ecran_A_Jour(Points[0],Points[1],1,1); + return; + } + // Comme pour le Fill, cette operation fait un peu d'"overdraw" // (pixels dessinés plus d'une fois) alors on force le FX Feedback à OFF FX_Feedback_Ecran_avant_remplissage=FX_Feedback_Ecran;