initial tests for text speed
This commit is contained in:
1 parent
1d7881bf3c
commit
29855712a8
1 file changed
+12
-5
+12
-5
@@ -86,10 +86,17 @@ void s2d_print(int x, int y, const char *str, uObjMtx *buf) {
|
||||
ty = 0;
|
||||
}
|
||||
|
||||
void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int pos) {
|
||||
char t = str[pos];
|
||||
str[pos] = '\0';
|
||||
s2d_print(x, y, str, buf);
|
||||
str[pos] = t;
|
||||
void s2d_type_print(int x, int y, char *str, uObjMtx *buf, int *pos) {
|
||||
char *temp_str = str;
|
||||
char t = temp_str[*pos];
|
||||
switch(t) {
|
||||
case CH_TRANSLATE:
|
||||
CH_SKIP(temp_str);
|
||||
s2d_atoi(temp_str, &temp_str);
|
||||
}
|
||||
temp_str[*pos] = '\0';
|
||||
s2d_print(x, y, temp_str, buf);
|
||||
temp_str[*pos] = t;
|
||||
(*pos)++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user