| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
#include "table.h" |
| 19 |
#include "imagelib.h" |
| 20 |
#include "cards.h" |
| 21 |
|
| 22 |
static Picture *card, *test6; |
| 23 |
|
| 24 |
#define W CARD_WIDTH |
| 25 |
#define H CARD_HEIGHT |
| 26 |
#define M CARD_MARGIN |
| 27 |
|
| 28 |
static void |
| 29 |
init() |
| 30 |
{ |
| 31 |
card = get_picture("as"); |
| 32 |
test6 = get_picture("test6"); |
| 33 |
} |
| 34 |
|
| 35 |
static void |
| 36 |
redraw() |
| 37 |
{ |
| 38 |
put_picture(card, M, M, 0, 0, W, H); |
| 39 |
put_picture(test6, 2*M+W, M, 0, 0, W, H); |
| 40 |
} |
| 41 |
|
| 42 |
static FunctionMapping fmap[] = { |
| 43 |
{ "init", (void *)init }, |
| 44 |
{ "redraw", (void *)redraw }, |
| 45 |
{ 0, 0 } |
| 46 |
}; |
| 47 |
|
| 48 |
int |
| 49 |
main(int argc, char **argv) |
| 50 |
{ |
| 51 |
register_imagelib(appimglib_imagelib); |
| 52 |
init_ace(argc, argv, fmap); |
| 53 |
init_table(3*M+2*W, 2*M+H); |
| 54 |
table_loop(); |
| 55 |
} |