Project

General

Profile

Revision 335

more docs

View differences:

font.c
188 188
        uint16_t W = 0, H = 0; {
189 189
            for(size_t i = 0; i < len; ++i){
190 190
                const glyph_t *g = p->fnt->glyphs[(size_t)p->txt[i]];
191
                if(g != NULL){ W += g->w; H = umax16(H, g->h); }
191
                if(g != NULL){ W += g->w; H = max_u16(H, g->h); }
192 192
            }
193 193
        }
194 194
        uint8_t *alp_buf = malloc(W*H);

Also available in: Unified diff