RE: [AD] Potential color conversion bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


This code should be moved down in the drivers. There is no fundamental
reason why video bitmaps needs to have the same depth as the screen. In
fact, that's sometimes impossible.


> -----Original Message-----
> From: alleg-developers-admin@xxxxxxxxxx [mailto:alleg-
> developers-admin@xxxxxxxxxx] On Behalf Of Peter Hull
> Sent: Monday, June 20, 2005 9:57 AM
> To: alleg-developers@xxxxxxxxxx
> Subject: Re: [AD] Potential color conversion bug
> 
> Robert Ohannessian wrote:
> 
> > _http://www.allegro.cc/forums/view_thread.php?_id=500985#target_
> >
> > I'm going to investigate this tonight. If there is indeed an Allegro
> > bug there, I'd like to have this fixed before the 4.2 release.
> >
> > Thanks.
> >
> In my case, it looks like screen is 16-bit, but my video bitmap is
> 32-bit. Therefore, blit does this (from blit.c)
> 708        if (src->vtable->color_depth != dest->vtable->color_depth)
{
> 709           /* need to do a color conversion */
> 710           dest->vtable->blit_between_formats(src, dest, s_x, s_y,
> d_x, d_y, w, h);
> 711        }
> and goes into the function allegro_gl_memory_blit_between_formats. I
> haven't traced it past there, yet.
> 
> Pete
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/