summaryrefslogtreecommitdiffstats
path: root/src/tk/radio.c
diff options
context:
space:
mode:
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) {