|
Post by u9 on Sept 13, 2007 10:59:05 GMT -5
Is there any way of knowing if a function fails and taking some control of the errors in Brutus? E.g. if Brutus fails to load a font, is it possible to see that from within the program? Or if loading an image fails, etc. etc.
|
|
|
Post by Guilect on Sept 13, 2007 13:05:43 GMT -5
Yes.
Both the font creat command and the image load command (and others) return an index value if successful, starting at 1. If the function is unsuccessful it returns -1.
|
|
|
Post by u9 on Sept 14, 2007 4:47:36 GMT -5
cool. I'll give it a try
|
|