summaryrefslogtreecommitdiff
path: root/src/client/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/screen.c')
-rw-r--r--src/client/screen.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/screen.c b/src/client/screen.c
index 1117e28..f85a1bf 100644
--- a/src/client/screen.c
+++ b/src/client/screen.c
@@ -1901,7 +1901,21 @@ static void SCR_ExecuteLayoutString(const char *s)
}
continue;
}
+
+ if (!strcmp(token, "color")) {
+ color_t color;
+
+ token = COM_Parse(&s);
+ if (SCR_ParseColor(token, &color)) {
+ color.u8[3] *= scr_alpha->value;
+ R_SetColor(color.u32);
+ }
+ continue;
+ }
}
+
+ R_ClearColor();
+ R_SetAlpha(scr_alpha->value);
}
//=============================================================================