[Fix] Major regression in gl_printText
This commit is contained in:
parent
e3618d7559
commit
fb5cc3cf18
@ -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];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user