summaryrefslogtreecommitdiffstats
path: root/src/splash.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-07 00:27:53 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-07 00:27:53 (EDT)
commita8ed4e3cea56bfed7464c243cf5f87b695c10eae (patch)
treece0b2ece4e7c2f72b524325308396290376ad94a /src/splash.c
parentb085e7cee14f2b9c0a0c7c85c34b5d6ae6faf515 (diff)
downloadmazefight-a8ed4e3cea56bfed7464c243cf5f87b695c10eae.zip
mazefight-a8ed4e3cea56bfed7464c243cf5f87b695c10eae.tar.gz
mazefight-a8ed4e3cea56bfed7464c243cf5f87b695c10eae.tar.bz2
splash, tk: Clarify and standardize function ptrs
Diffstat (limited to 'src/splash.c')
-rw-r--r--src/splash.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/splash.c b/src/splash.c
index 5a85330..b76b0cc 100644
--- a/src/splash.c
+++ b/src/splash.c
@@ -141,14 +141,15 @@ _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_buf,
- text_font, text_color, _mf_splash_seed, splash),
+ text_font, text_color,
+ &_mf_splash_seed, splash),
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,
mftk_radio_new(MF_SPLASH_CHK_BTN_W, MF_SPLASH_CHK_BTN_P,
&chkb_color, &chkm_color, MF_SPLASH_CHK_LBL_P,
MF_SPLASH_CHK_ITM_P, text_font, text_color,
- _mf_splash_size, splash, renderer, 0, 3,
+ &_mf_splash_size, splash, renderer, 0, 3,
"15x15", "20x20", "30x30"),
MFTK_GRID_HALIGN_L|MFTK_GRID_VALIGN_T,
mftk_label_new(text_font, "Fog of war", text_color,
@@ -156,14 +157,14 @@ _mf_splash_form(SDL_Renderer *renderer, TTF_Font *text_font,
MFTK_GRID_HALIGN_R|MFTK_GRID_VALIGN_T,
mftk_check_new(MF_SPLASH_CHK_BTN_W, MF_SPLASH_CHK_BTN_P,
&chkb_color, &chkm_color, SDL_TRUE, 0, NULL,
- NULL, NULL, _mf_splash_fow, splash, renderer),
+ NULL, NULL, &_mf_splash_fow, splash, renderer),
MFTK_GRID_HALIGN_L|MFTK_GRID_VALIGN_T,
mftk_label_new(text_font, "Reveal maze", text_color,
renderer),
MFTK_GRID_HALIGN_R|MFTK_GRID_VALIGN_T,
mftk_check_new(MF_SPLASH_CHK_BTN_W, MF_SPLASH_CHK_BTN_P,
&chkb_color, &chkm_color, SDL_FALSE, 0, NULL,
- NULL, NULL, _mf_splash_reveal, splash,
+ NULL, NULL, &_mf_splash_reveal, splash,
renderer),
MFTK_GRID_HALIGN_L|MFTK_GRID_VALIGN_T,
mftk_blank_new(),