From 0797a72c707d06b18c1d0677f0800f02743df6f9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 24 Jul 2008 19:02:41 +0000 Subject: [PATCH] circle drawing git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@62 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- divers.c | 16 +++++++++------- graph.c | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/divers.c b/divers.c index 0b9e5738..63ea12e4 100644 --- a/divers.c +++ b/divers.c @@ -389,40 +389,42 @@ void Pixel_dans_ecran_courant (word X,word Y,byte Couleur) void Remplacer_une_couleur(byte Ancienne_couleur, byte Nouvelle_couleur) { - puts("Remplacer_une_couleur non implémenté!"); + UNIMPLEMENTED } void Ellipse_Calculer_limites(short Rayon_horizontal,short Rayon_vertical) { - puts("Ellipse_Calculer_limites non implémenté!"); + UNIMPLEMENTED } byte Pixel_dans_ellipse(void) { - puts("Pixel_dans_ellipse non implémenté!"); + UNIMPLEMENTED return 0; } byte Pixel_dans_cercle(void) { - puts("Pixel_dans_cercle non implémenté!"); + if((Table_des_carres[abs(Cercle_Curseur_X)] + + Table_des_carres[abs(Cercle_Curseur_Y)] ) <= Cercle_Limite) + return 255; return 0; } void Copier_une_partie_d_image_dans_une_autre(byte * Source,word S_Pos_X,word S_Pos_Y,word Largeur,word Hauteur,word Largeur_source,byte * Destination,word D_Pos_X,word D_Pos_Y,word Largeur_destination) { - puts("Copier_une_partie_d_image_dans_une_autre non implémenté!"); + UNIMPLEMENTED } byte Lit_pixel_dans_ecran_brouillon(word X,word Y) { - puts("Lit_pixel_dans_ecran_brouillon non implémenté!"); + UNIMPLEMENTED return 0; } void Rotate_90_deg_LOWLEVEL(byte * Source,byte * Destination) { - puts("Rotate_90_deg_LOWLEVEL non implémenté!"); + UNIMPLEMENTED } void Remap_general_LOWLEVEL(byte * Table_conv,byte * Buffer,short Largeur,short Hauteur,short Largeur_buffer) diff --git a/graph.c b/graph.c index b40e5b66..9bd7e28d 100644 --- a/graph.c +++ b/graph.c @@ -2171,6 +2171,8 @@ void Ligne_horizontale_XOR_Zoom(short Pos_X, short Pos_Y, short Largeur) for (Indice=Pos_Y_reelle; Indice