# include "Ximage.h"

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

  XFlush (graphic[0].display);
  XFreeFont (graphic[0].display, graphic[0].font); 
  XFreeGC (graphic[0].display, graphic[0].gc);
  XDestroySubwindows (graphic[0].display, graphic[0].window);
  XDestroyWindow (graphic[0].display, graphic[0].window);
  XFlush (graphic[0].display);
  XCloseDisplay (graphic[0].display);
  return;
}

