| 742 | } |
| 743 | |
| 744 | int grtext_GetTextHeight(const char *str) { |
| 745 | int cur_h = 0; |
| 746 | const char *spos = str; |
| 747 | |
| 748 | do { |
| 749 | cur_h += (Grtext_line_spacing + CHAR_HEIGHT(Grtext_font)); |
| 750 | |
| 751 | spos = strchr(spos, '\n'); |
| 752 | if (spos) |
| 753 | spos++; |
| 754 | } while (spos); |
| 755 | |
| 756 | return cur_h; |
| 757 | } |
| 758 | |
| 759 | int grtext_GetTextLineWidth(const char *str) { |
| 760 | int line_width = 0, max_width = 0; |
no test coverage detected