# include "Ximage.h"

/************** SetUpDisplay *************/
void SetUpDisplay (Graphic *graphic, int *argc, char **argv) {

  char display_name[120];

  CheckDisplayName (argc, argv, display_name); 

  /* set default values */
  graphic[0].display  = OpenDisplay (display_name, &graphic[0].screen);
  graphic[0].colormap = DefaultColormap (graphic[0].display, graphic[0].screen);
  graphic[0].depth    = DefaultDepth    (graphic[0].display, graphic[0].screen);
  graphic[0].visual   = DefaultVisual   (graphic[0].display, graphic[0].screen);

  /* get the basic colors */
  CheckVisual (graphic, argc, argv);
  CheckColors (graphic, argc, argv);
}

