| 146 | }; |
| 147 | |
| 148 | static int Fallback_CellWidth(const cc_uint8* rows) { |
| 149 | int y, width, widest = 0; |
| 150 | |
| 151 | for (y = 0; y < CELL_SIZE; y++) |
| 152 | { |
| 153 | widest = max(widest, rows[y]); |
| 154 | } |
| 155 | width = Math_ilog2(widest) + 1; |
| 156 | |
| 157 | return width + 1; /* add 1 for padding */ |
| 158 | } |
| 159 | |
| 160 | int FallbackFont_TextWidth(const struct DrawTextArgs* args) { |
| 161 | cc_string left = args->text, part; |
no test coverage detected