From d72897e93deb16b1505f748edba1c177fd31bf1e Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 27 Oct 2008 09:02:33 +0000 Subject: [PATCH] Some more fixes for the gradiation rectangles. The position is now calculated in an int, you should not experience any problem with the circle limit. Also fixed the operation handling. The rectangle is now drawn properly when you finish sizing it. The vector line still leaves some artifact on screen, however... git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@310 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- gfx2.cfg | Bin 10062 -> 10062 bytes graph.c | 6 +++--- operatio.c | 34 +++++++++++++++++++++++++++++++--- tables_aide.h | 6 +++--- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/gfx2.cfg b/gfx2.cfg index 59c4331d207ab6f00d28bba0482277044fb2119a..3da9db0dd8b557cf224c2c914d263efee751cf53 100644 GIT binary patch delta 14 VcmX@-cg}BvpDH8MW`EWHi~uf71%?0s delta 14 VcmX@-cg}BvpDH8cW`EWHi~uf11%&_r diff --git a/graph.c b/graph.c index 5034fb0a..17275f9d 100644 --- a/graph.c +++ b/graph.c @@ -5213,7 +5213,7 @@ void Tracer_rectangle_degrade(short RAX,short RAY,short RBX,short RBY,short VAX, short a = (VBY - VAY)/(VBX - VAX); short b = VAY - a*VAX; - short Distance_X, Distance_Y; + int Distance_X, Distance_Y; DEBUG("inttotal",Degrade_Intervalle_total); @@ -5221,8 +5221,8 @@ void Tracer_rectangle_degrade(short RAX,short RAY,short RBX,short RBY,short VAX, for (Pos_X = RAX;Pos_X