summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..612984f
--- /dev/null
+++ b/config.h
@@ -0,0 +1,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