source: buchla-68k/vlib/vwputm.c@ 8c8b4e5

Last change on this file since 8c8b4e5 was 8c8b4e5, checked in by Thomas Lopatic <thomas@…>, 7 years ago

More volatile hardware accesses.

  • Property mode set to 100644
File size: 1017 bytes
Line 
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 "ram.h"
19
20/*
21 =============================================================================
22 vwputm(obase, nw, fg, bg, row, col, ml) -- output a menu in a bitmap
23 =============================================================================
24*/
25
26void vwputm(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[])
27{
28 while (*ml) {
29
30 vwputs(obase, nw, fg, bg, row++, col, *ml++);
31 }
32}
33
34
Note: See TracBrowser for help on using the repository browser.