summaryrefslogtreecommitdiffstats
path: root/src/tk/radio.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-09-25 18:39:15 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-09-25 18:39:15 (EDT)
commit2ed3153670ffba9d43f6033ce89dc33c241de193 (patch)
treecd2191e381f72f2938650839962c16fcad6268e2 /src/tk/radio.c
parent15f3d1c8385ac7cc2ed3c04bb1e1fb919ba169d1 (diff)
downloadmazefight-2ed3153670ffba9d43f6033ce89dc33c241de193.zip
mazefight-2ed3153670ffba9d43f6033ce89dc33c241de193.tar.gz
mazefight-2ed3153670ffba9d43f6033ce89dc33c241de193.tar.bz2
tk: Define colors within local header
Diffstat (limited to 'src/tk/radio.c')
-rw-r--r--src/tk/radio.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/tk/radio.c b/src/tk/radio.c
index 755be15..8fb86bd 100644
--- a/src/tk/radio.c
+++ b/src/tk/radio.c
@@ -169,12 +169,10 @@ _mftk_radio_destroy(struct mftk_widget *w)
}
struct mftk_widget *
-mftk_radio_new(int butn_width, int butn_padding, SDL_Color *butn_color,
- SDL_Color *mark_color, int label_padding, int item_padding,
- TTF_Font *font, SDL_Color *text_color,
- int (*action)(void *, int), int (*submit)(void *),
- void *user_data, SDL_Renderer *renderer, int state, int options,
- ...)
+mftk_radio_new(int butn_width, int butn_padding, int label_padding,
+ int item_padding, TTF_Font *font, int (*action)(void *, int),
+ int (*submit)(void *), void *user_data, SDL_Renderer *renderer,
+ int state, int options, ...)
{
struct mftk_widget *w;
struct mftk_radio *r;
@@ -204,9 +202,9 @@ mftk_radio_new(int butn_width, int butn_padding, SDL_Color *butn_color,
va_start(ap, options);
for (i = 0; i < options; ++i) {
r->children[i] = mftk_check_new(butn_width, butn_padding,
- butn_color, mark_color, (i == state),
- label_padding, font, va_arg(ap, const char *),
- text_color, &_mftk_radio_state_change, submit,
+ (i == state), label_padding, font,
+ va_arg(ap, const char *),
+ &_mftk_radio_state_change, submit,
&r->states[i], renderer);
if (r->children[i] == NULL) {
for (; i >= 0; --i) {