From 302a7511e1e024f263251a9e43a33d92465c3c06 Mon Sep 17 00:00:00 2001 From: Reetika Roy Date: Wed, 4 Nov 2015 06:28:07 +0530 Subject: [PATCH] Fixed variable name mismatches. --- DDA Line Drawing Algorithm/DDALine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDA Line Drawing Algorithm/DDALine.cpp b/DDA Line Drawing Algorithm/DDALine.cpp index 671c5de..6eec330 100644 --- a/DDA Line Drawing Algorithm/DDALine.cpp +++ b/DDA Line Drawing Algorithm/DDALine.cpp @@ -8,7 +8,7 @@ main() { int gDriver=DETECT,gMode; - int x1,x2,y1,y2,iColor; + int x1,x2,y1,y2,clr; initgraph(&gDriver,&gMode,"c:\\tc\\bgi"); cleardevice(); @@ -54,7 +54,7 @@ void DDALine(int x1,int y1,int x2,int y2,int clr) y = y1; circle(x,y,1); - for (count=1; iCount<=steps; count++) + for (count=1; count<=steps; count++) { putpixel(floor(x),floor(y),clr%10); x -= xInc;