unsigned char I;
+ /* Assume we have an error loading the font */
+ tgi_error = TGI_ERR_CANNOT_LOAD;
+
/* Open the file */
F = open (name, O_RDONLY);
if (F < 0) {
Font = malloc (H.size);
if (Font == 0) {
/* Out of memory */
+ tgi_error = TGI_ERR_NO_MEM;
goto LoadError;
}
Font->chars[I] += V;
}
+ /* Clear the error */
+ tgi_error = TGI_ERR_OK;
+
/* Return the vector font loaded */
return Font;
if (F >= 0) {
close (F);
}
- tgi_error = TGI_ERR_CANNOT_LOAD;
return 0;
}