hey my line function compiles and everything but when i call it, it does not draw a line, here is the code:
void draw(int x1, int y1, int x2, int y2)
{
tagPOINT pts[2] ;
pts[0].x = x1 ;
pts[0].y = y1 ;
pts[1].x = x1 ;
pts[1].y = y1 ;
CONSOLE_SCREEN_BUFFER_INFO csbi ;
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE) ;
GetConsoleScreenBufferInfo(hConsole, &csbi) ;
Polyline((HDC)hConsole, pts, 2) ;
}
anyone have a clue?