From b6d18a012b5b997e2306bbdc1fc3b755745962eb Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Mon, 15 Dec 2008 22:28:32 +0000 Subject: [PATCH] Brush menu displays with wide/tall aspect ratio if needed git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@388 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- graph.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/graph.c b/graph.c index de879bc5..a5930044 100644 --- a/graph.c +++ b/graph.c @@ -3564,13 +3564,22 @@ void Afficher_pinceau_dans_fenetre(word X,word Y,int Numero) word Pos_Y; word Pos_fenetre_X; word Pos_fenetre_Y; + int Taille_X; + int Taille_Y; + word Orig_X; + word Orig_Y; - word Orig_X = X + 8 - Pinceau_predefini_Decalage_X[Numero]; - word Orig_Y = Y + 8 - Pinceau_predefini_Decalage_Y[Numero]; + Taille_X=Menu_Facteur_X/Pixel_height; + Taille_Y=Menu_Facteur_Y/Pixel_width; - for (Pos_fenetre_Y=Orig_Y,Pos_Y=0; Pos_Y