Subversion Repositories programming

Rev

Rev 307 | Rev 317 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 307 Rev 312
Line 7... Line 7...
7
 
7
 
8
#include <ggi/ggi.h>
8
#include <ggi/ggi.h>
9
#include <stdio.h>
9
#include <stdio.h>
10
#include "draw.h"
10
#include "draw.h"
11
 
11
 
-
 
12
#ifdef __cplusplus
-
 
13
extern "C"
-
 
14
{
-
 
15
#endif
-
 
16
 
12
/* Initialize GGI for drawing */
17
/* Initialize GGI for drawing */
13
void draw_init ()
18
void draw_init ()
14
{
19
{
15
    /* Initialize the palette */
20
    /* Initialize the palette */
16
    palette[AQUA].r = 0x0000;
21
    palette[AQUA].r = 0x0000;
Line 155... Line 160...
155
    ggiSetGCForeground (vis, color);
160
    ggiSetGCForeground (vis, color);
156
    ggiPuts (vis, x, y, str);
161
    ggiPuts (vis, x, y, str);
157
    ggiFlush (vis);
162
    ggiFlush (vis);
158
}
163
}
159
 
164
 
-
 
165
#ifdef __cplusplus
-
 
166
}
-
 
167
#endif
-
 
168