nanogui: GrDrawImageToFit fail with PNG image with alpha layer


Previous by date: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Next by date: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Previous in thread: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Next in thread: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier

Subject: Re: [nanogui] Re: GrDrawImageToFit fail with PNG image with alpha layer
From: Daniel ####@####.####
Date: 3 Jun 2010 18:13:56 -0000
Message-Id: <AANLkTil7tS_I_8PflwK_M0Yttt3ZZZUN5CMVtS_g-9SJ@mail.gmail.com>

2010/6/3 Aaron J. Grier ####@####.####
> On Thu, Jun 03, 2010 at 03:00:57PM +0200, Daniel Nyström wrote:
>> >    assert (c < psd->ncolors);
>
> the assertion is incorrect for non-palettized video modes.  I would just
> remove the asserts, or change it to
>
>        assert(psd->pixtype != MWPF_PALETTE || c < psd->ncolors)

Since fblin24.c is specifically for 24bit RGB I guess pixtype will
never be anything but MWPF_TRUECOLOR888, so just removing the assert
would do?

Previous by date: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Next by date: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Previous in thread: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier
Next in thread: 3 Jun 2010 18:13:56 -0000 Re: GrDrawImageToFit fail with PNG image with alpha layer, Aaron J. Grier


Powered by ezmlm-browse 0.20.