[Fix] Major regression in gl_printText

This commit is contained in:
Allanis 2013-03-22 19:21:32 +00:00
parent e3618d7559
commit fb5cc3cf18

View File

@ -228,7 +228,7 @@ int gl_printText(const glFont* ft_font, const int width, const int height,
// Time to draw the line. // Time to draw the line.
m = 0; m = 0;
for(j = 0; j < (lastspace-p-1); j++) { for(j = 0; j < (lastspace-p-1); j++) {
m += ft_font->w[(int)buf[j]]; m += ft_font->w[(int)txt[p+j+1]];
if(m > width) break; if(m > width) break;
buf[j] = txt[p+j+1]; buf[j] = txt[p+j+1];
} }