~l3kn/quad

ref: pine quad/config.h -rw-r--r-- 724 bytes
4fcbec62 — Leon Rische Enable -O3 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#define SIZE 720

#define PADDING_X 0
#define PADDING_Y 20

#define SCALE 2

#define NRULES 4
#define WRULES 2
#define WEDITRULES 2

#define WEDIT 4
#define HEDIT 3

#define NPATTERNS 2
#define WPATTERNS 2

#define HRULES (NRULES / WRULES)
#define HPATTERNS (NPATTERNS / WPATTERNS)

#define MENU_X (PADDING_X + (TILE_SIZE / 2))
#define MENU_Y (PADDING_Y * 2 + SIZE)
#define MENU_WIDTH (WEDITRULES * WEDIT - 1)
#define MENU_HEIGHT 5
#define TILE_SIZE (SIZE / (MENU_WIDTH + 1))

#define CANVAS_X PADDING_X
#define CANVAS_Y PADDING_Y

#define HEIGHT (PADDING_Y * 3 +                \
               MENU_HEIGHT * TILE_SIZE + SIZE)
#define WIDTH (SIZE + 2 * PADDING_X)

#define COLOR_BLACK 0x000000
#define COLOR_WHITE 0xFFFFFF