Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed variable name mismatches. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed variable name mismatches.
reetika-roy committed Nov 4, 2015
commit 302a7511e1e024f263251a9e43a33d92465c3c06
4 changes: 2 additions & 2 deletions DDA Line Drawing Algorithm/DDALine.cpp
Original file line number Diff line number Diff line change
@@ -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;