added simple drop shadow support

This commit is contained in:
farisawan-2000 committed 2020-12-18 18:38:27 -05:00
1 parent 907ed074fb
commit ae91cbaf50
6 files changed
+76 -53

No files matched your search

+6 -1
View File
@@ -18,9 +18,10 @@ void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len) {
if (*p == '\0') return;
// resets colors
// resets parameters
s2d_red = s2d_green = s2d_blue = 255;
s2d_alpha = 255;
drop_shadow = FALSE;
do {
char current_char = *p;
@@ -53,6 +54,10 @@ void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len) {
s2d_alpha = s2d_atoi(p, &p);
break;
case CH_DROPSHADOW:
drop_shadow ^= 1;
// CH_SKIP(p);
break;
case '\n':
x = orig_x;
y += TEX_HEIGHT;