summaryrefslogtreecommitdiffstats
path: root/src/splash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/splash.c')
-rw-r--r--src/splash.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/splash.c b/src/splash.c
index 3c743a3..5c9adb7 100644
--- a/src/splash.c
+++ b/src/splash.c
@@ -32,6 +32,14 @@
#include "util.h"
static int
+_mf_splash_seed(void *user_data, const char *seed)
+{
+ SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Seed: %ld", atol(seed));
+
+ return 0;
+}
+
+static int
_mf_splash_size(void *user_data, int state)
{
switch (state) {
@@ -116,7 +124,7 @@ _mf_splash_form(SDL_Renderer *renderer, TTF_Font *text_font,
mftk_label_new(text_font, "Seed", text_color, renderer),
MFTK_GRID_HALIGN_R|MFTK_GRID_VALIGN_T,
mftk_text_new('0', '9', rand_max_len, seed, text_font,
- text_color),
+ text_color, _mf_splash_seed, NULL),
MFTK_GRID_HALIGN_L|MFTK_GRID_VALIGN_T,
mftk_label_new(text_font, "Size", text_color, renderer),
MFTK_GRID_HALIGN_R|MFTK_GRID_VALIGN_T,