Figure 9

Initialization of HALO '88 in setup_halo_globals()

setdev(halo.device);              /* Initialize the graphics device  */
setdegree(&halo.degree_mode);           /* Use degrees, not radians  */
setworld(&halo.x1,&halo.y1,&halo.x2,&halo.y2); /* World rectangle  */
setlnwidth(&halo.lnwidth) ;                /* Line width is 1 pixel  */
setlnstyle(&halo.lnstyle);                 /* Line style is solid  */
setcolor(&halo.maxcolor);      /* Max screen color is usually white  */
setfont(halo.font);                    /* Load font from disk file  */
setstclr(&halo.maxcolor,&halo.maxcolor) ;  /* Set stroke text color  */