Remove C99 dependency

parent c570779b
......@@ -214,8 +214,9 @@ texture_font_set_size ( texture_font_t *self, float size )
int best_match = 0;
int diff = abs((int)size - self->face->available_sizes[0].width);
int i;
for (int i = 1; i < self->face->num_fixed_sizes; ++i) {
for (i = 1; i < self->face->num_fixed_sizes; ++i) {
int ndiff = abs((int)size - self->face->available_sizes[i].width);
if (ndiff < diff) {
best_match = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment