Browse Source

* Only support version 1 fonts.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
99aa400f26
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cucul/font.c

+ 2
- 1
cucul/font.c View File

@@ -137,7 +137,8 @@ struct cucul_font *cucul_load_font(void const *data, unsigned int size)


if(size != 8 + f->header.control_size + f->header.data_size if(size != 8 + f->header.control_size + f->header.data_size
|| (f->header.bpp != 8 && f->header.bpp != 4 && || (f->header.bpp != 8 && f->header.bpp != 4 &&
f->header.bpp != 2 && f->header.bpp != 1))
f->header.bpp != 2 && f->header.bpp != 1)
|| (flags & 1) == 0)
{ {
free(f); free(f);
return NULL; return NULL;


Loading…
Cancel
Save