summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/splash.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/splash.c b/src/splash.c
index 403d0dd..e189361 100644
--- a/src/splash.c
+++ b/src/splash.c
@@ -82,26 +82,16 @@ mf_splash(SDL_Renderer *renderer)
goto err;
}
- form_color.r = MF_COLOR_FORM_R;
- form_color.g = MF_COLOR_FORM_G;
- form_color.b = MF_COLOR_FORM_B;
- form_color.a = MF_COLOR_FORM_A;
- text_color.r = MF_COLOR_FORE_R;
- text_color.g = MF_COLOR_FORE_G;
- text_color.b = MF_COLOR_FORE_B;
- text_color.a = MF_COLOR_FORE_A;
- butn_color.r = MF_COLOR_BUTN_R;
- butn_color.g = MF_COLOR_BUTN_G;
- butn_color.b = MF_COLOR_BUTN_B;
- butn_color.a = MF_COLOR_BUTN_A;
- chkb_color.r = MF_COLOR_CHKB_R;
- chkb_color.g = MF_COLOR_CHKB_G;
- chkb_color.b = MF_COLOR_CHKB_B;
- chkb_color.a = MF_COLOR_CHKB_A;
- chkm_color.r = MF_COLOR_CHKM_R;
- chkm_color.g = MF_COLOR_CHKM_G;
- chkm_color.b = MF_COLOR_CHKM_B;
- chkm_color.a = MF_COLOR_CHKM_A;
+ form_color.r = MF_COLOR_FORM_R, form_color.g = MF_COLOR_FORM_G;
+ form_color.b = MF_COLOR_FORM_B, form_color.a = MF_COLOR_FORM_A;
+ text_color.r = MF_COLOR_FORE_R, text_color.g = MF_COLOR_FORE_G;
+ text_color.b = MF_COLOR_FORE_B, text_color.a = MF_COLOR_FORE_A;
+ butn_color.r = MF_COLOR_BUTN_R, butn_color.g = MF_COLOR_BUTN_G;
+ butn_color.b = MF_COLOR_BUTN_B, butn_color.a = MF_COLOR_BUTN_A;
+ chkb_color.r = MF_COLOR_CHKB_R, chkb_color.g = MF_COLOR_CHKB_G;
+ chkb_color.b = MF_COLOR_CHKB_B, chkb_color.a = MF_COLOR_CHKB_A;
+ chkm_color.r = MF_COLOR_CHKM_R, chkm_color.g = MF_COLOR_CHKM_G;
+ chkm_color.b = MF_COLOR_CHKM_B, chkm_color.a = MF_COLOR_CHKM_A;
box = mftk_box_new(MF_WINDOW_W, MF_WINDOW_H, 0, 0, MF_SPLASH_FORM_P,
&form_color,