# include "Ximage.h"

/************** MakeGC *************/
void MakeGC (Graphic *graphic) {

  XGCValues gcvalues;

  gcvalues.foreground = graphic[0].black;
  gcvalues.background = graphic[0].white;
  graphic[0].gc = XCreateGC (graphic[0].display, graphic[0].window, 
			     GCForeground | GCBackground, &gcvalues);
  if (graphic[0].gc == 0)
    QuitX (graphic[0].display, "Error in creating a Graphics Context", "");
}

