On Jan 24, 2008 8:14 PM, Marco Gerards <[EMAIL PROTECTED]> wrote:
> It would be nice, not required. I don't expect too much problems
> here...
>
> Perhaps a better approach would be possible to do a check after
> reading a size:
>
> int size = foo();
>
> Check the size of the file here
>
> while (size--)
> {
> read pixels;
> }
>
>
png is compressed, it's not easy to separate the pixels.
> Or just check for grub_errno or so after reading the picture?
yes, after the picture is decoded, grub_errno is checked, if it's non
zero, the bitmap image will be deallocated.
--
Bean
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel