[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | vwputm.c -- put a menu in a 2-bit per pixel graphics window
|
---|
| 4 | Version 1 -- 1987-04-13 -- D.N. Lynx Crowe
|
---|
| 5 |
|
---|
| 6 | vwputm(obase, nw, fg, bg, row, col, ml)
|
---|
| 7 | unsigned int *obase;
|
---|
| 8 | int nw, fg, bg;
|
---|
| 9 | char *ml[];
|
---|
| 10 |
|
---|
| 11 | Writes the menu described by the list 'ml' in the
|
---|
| 12 | 'nw' character wide bitmap 'obase', using 'fg' for
|
---|
| 13 | the foreground color and 'bg' for the background.
|
---|
| 14 | The menu is at ('row','col') in the bitmap.
|
---|
| 15 | =============================================================================
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | #include <vsdd.h>
|
---|
| 19 |
|
---|
[0580615] | 20 | extern void vwputs(int *obase, int nw, int fg, int bg, int row, int col, char *str);
|
---|
[f40a309] | 21 |
|
---|
| 22 | /*
|
---|
| 23 | =============================================================================
|
---|
| 24 | vwputm(obase, nw, fg, bg, row, col, ml) -- output a menu in a bitmap
|
---|
| 25 | =============================================================================
|
---|
| 26 | */
|
---|
| 27 |
|
---|
[0580615] | 28 | void vwputm(unsigned int *obase, int nw, int fg, int bg, int row, int col, char *ml[])
|
---|
[f40a309] | 29 | {
|
---|
| 30 | while (*ml) {
|
---|
| 31 |
|
---|
| 32 | vwputs(obase, nw, fg, bg, row++, col, *ml++);
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 |
|
---|