actually made stuff render on console

This commit is contained in:
farisawan-2000 committed 2021-05-31 17:01:02 -04:00
1 parent cb79fe58cf
commit 310e7babdf
2 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
/**
* SET YOUR FONT NAME HERE
*/
#define FONTNAME impact
#define FONTNAME delfino
/***********
+10 -2
View File
@@ -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)));
}
}