summaryrefslogtreecommitdiff
path: root/config.h
blob: 612984fb085e1827d002728cc8aaace48f5df320 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef config_h
#define config_h

#define app_name "Twink Player"
#define default_window_w 1280
#define default_window_h 960
#define ms_per_frame 40 /* 25 FPS */

#define max_songs 1024
#define song_filename_max 256
#define song_name_max 256
#define library_folder "/home/quou/music/"

/* font */
#define default_font_location "/usr/share/fonts/TTF/DejaVuSans.ttf"
#define default_font_size 20

/* theme */
#define theme_text_colour       make_colour(0x000000, 0xff)
#define theme_background_colour make_colour(0xffffff, 0xff)
#define theme_outline_colour    make_colour(0x000000, 0xff)
#define theme_hovered_colour    make_colour(0xcacaca, 0xff)
#define theme_active_colour     make_colour(0xf0f8ff, 0xff)
#define theme_outline_width     2
#define theme_padding           2

/* from here on are parametres that are not designed to
 * be changed. */
#define memory_heap_size  (1024 * 1024 * 8)
#define memory_size       (memory_heap_size + (1024 * 1024 * 8))

#if defined(is64bit) && is64bit
#define allocation_default_alignment 8
#else
#define allocation_default_alignment 4
#endif

#define fbits 9

#define rcache_enable 1
#define rcache_default_cell_w 128
#define rcache_default_cell_h 128
#define rcache_gw (default_window_w / rcache_default_cell_w)
#define rcache_gh (default_window_w / rcache_default_cell_h)
#define rcache_cmd_buf_size (1024 * 1024)
#define rcache_hash_seed 2166136261

#endif