Debian Codegraph @

tests/test6.c

raw symbols SCIP
1 /* The Ace of Penguins - test6.c
2 Copyright (C) 1998, 2001 DJ Delorie
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
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 }