From 8ba3e62614e61e47ca7f8d79cd8c93d547206f74 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 27 Jan 2022 18:24:50 -0500 Subject: tk: Fill text background (if editable) And use the same macros for all background fill colors. --- (limited to 'src/tk/button.c') diff --git a/src/tk/button.c b/src/tk/button.c index 47f59f6..c0a0c61 100644 --- a/src/tk/button.c +++ b/src/tk/button.c @@ -113,8 +113,8 @@ _mftk_button_render(struct mftk_widget *w, SDL_Renderer *renderer, int x, int y) rect.w = w->w; rect.h = w->h; if (SDL_SetRenderDrawColor(renderer, - MFTK_COLOR_BUTN_R, MFTK_COLOR_BUTN_G, - MFTK_COLOR_BUTN_B, MFTK_COLOR_BUTN_A) < 0 || + MFTK_COLOR_BACK_R, MFTK_COLOR_BACK_G, + MFTK_COLOR_BACK_B, MFTK_COLOR_BACK_A) < 0 || SDL_RenderFillRect(renderer, &rect) < 0) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't render widget: %s", -- cgit v0.9.1