mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Added bassic support for newline character
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user