Added bassic support for newline character

This commit is contained in:
Thomas Edvalson
2014-02-01 00:16:03 -05:00
parent b560307fbd
commit 4ce1b46c11
+4 -2
View File
@@ -30,10 +30,12 @@ namespace cpp3ds {
int width = screen.getWidth();
for (i = 0; i <strlen(text); i++){
if (tmp_x+8 > width) {
for (i = 0; i < strlen(text); i++){
if (tmp_x+8 > width || text[i] == '\n') {
line++;
tmp_x = this->x + x;
if (text[i] == '\n')
continue;
}
drawChar(screen, text[i], tmp_x, this->y+y+(line*8));
tmp_x = tmp_x+8;