#include <stdio.h>
#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>

#include "initapp.c"

/* Array of points */

XPoint pseed[3] = {{50, 200}, {150, 50}, {250,200}};
XPoint pnow = {200, 200};
char *quit_label = "Quit";

void initapp(int, char **, int, int, unsigned, unsigned);
void xwin_init(void);

main(int argc, char **argv) 
{
  init_display(argc, argv);
  while(1){
    draw_rect(50, 50);
  }
  close_display();

}
init_display(int argc, char ** argv)
{
  xwin_init();
  initapp(argc, argv, 20, 20, 300, 250);

}

clear_display(){
  XClearWindow(theDisplay, theMain);
}  


draw_rect(int x,int y)
{
  XDrawRectangle(theDisplay, theMain, theGC, x, y, 2, 2);
}

close_display()
{
  XCloseDisplay(theDisplay);
}

draw_point(int x,int y)
{
  XDrawPoint(theDisplay, theMain, theGC, x, y);
}