From 310e7babdfe453eb4c8f298bd66949a9597ca65e Mon Sep 17 00:00:00 2001 From: farisawan-2000 Date: Mon, 31 May 2021 17:01:02 -0400 Subject: [PATCH] actually made stuff render on console --- config.h | 2 +- s2d_parse.c | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 66d56006..8e8fd697 100644 --- a/config.h +++ b/config.h @@ -6,7 +6,7 @@ /** * SET YOUR FONT NAME HERE */ -#define FONTNAME impact +#define FONTNAME delfino /*********** diff --git a/s2d_parse.c b/s2d_parse.c index 104cd8de..36035a8f 100644 --- a/s2d_parse.c +++ b/s2d_parse.c @@ -27,10 +27,11 @@ static int s2d_snprint(int x, int y, int align, const char *str, uObjMtx *buf, i if (*p == '\0') return; - if (IS_RUNNING_ON_EMULATOR) + if (IS_RUNNING_ON_EMULATOR) { s2d_rdp_init(); - else + } else { f3d_rdp_init(); + } // resets parameters s2d_red = s2d_green = s2d_blue = 255; @@ -171,7 +172,14 @@ static int s2d_snprint(int x, int y, int align, const char *str, uObjMtx *buf, i } else if (mode == MODE_DRAW_NORMALTEXT) { draw_s2d_glyph(current_char, x, y, (buf++)); } + } else { + if (drop_shadow && mode == MODE_DRAW_DROPSHADOW) { + draw_f3d_dropshadow(current_char, x + drop_x, y + drop_y, (buf++)); + } else if (mode == MODE_DRAW_NORMALTEXT) { + draw_f3d_glyph(current_char, x, y, (buf++)); + } } + (x += (tbl[(int) current_char] * (BASE_SCALE * myScale))); } }