/* ============================================================================= vwputm.c -- put a menu in a 2-bit per pixel graphics window Version 1 -- 1987-04-13 -- D.N. Lynx Crowe vwputm(obase, nw, fg, bg, row, col, ml) unsigned int *obase; int nw, fg, bg; char *ml[]; Writes the menu described by the list 'ml' in the 'nw' character wide bitmap 'obase', using 'fg' for the foreground color and 'bg' for the background. The menu is at ('row','col') in the bitmap. ============================================================================= */ #include extern void vwputs(int *obase, int nw, int fg, int bg, int row, int col, char *str); /* ============================================================================= vwputm(obase, nw, fg, bg, row, col, ml) -- output a menu in a bitmap ============================================================================= */ void vwputm(unsigned int *obase, int nw, int fg, int bg, int row, int col, char *ml[]) { while (*ml) { vwputs(obase, nw, fg, bg, row++, col, *ml++); } }