diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-05 00:50:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-05 00:50:27 (EDT) |
commit | cbf4234dff0b594d84ab8c976d7cde7334fc4877 (patch) | |
tree | db085ff8b5a7b5ef30db6b944073baf71c2fdbd8 | |
parent | 41829434c29da9cb1d59654bca7c02016dbd4d85 (diff) | |
download | mazefight-cbf4234dff0b594d84ab8c976d7cde7334fc4877.zip mazefight-cbf4234dff0b594d84ab8c976d7cde7334fc4877.tar.gz mazefight-cbf4234dff0b594d84ab8c976d7cde7334fc4877.tar.bz2 |
splash: Shrink color struct assignments
-rw-r--r-- | src/splash.c | 30 |
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, |