Re: [AD] win: 16bit stretchblit to GDI.. colours wrong.

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


On Sun, Dec 29, 2002 at 11:47:52PM +1100, aj wrote:
> when i stretch blit a 16bit BITMAP to the desktop using..
> 
> stretch_blit_to_hdc( myBitmap, hdc, 0, 0, w, h, 0, 0, w-10, h-10 );
> 
> and i scale it down.. the colours are wrong.
> 
> when enlarging (stretch up) to the GDI desktop everything appears
> correctly.
> 
> when bliting the internal BITMAP* 16bit to the GDI (same res,
> no stretching) everything is OK.
> 
> its just when scaling down.
> 
> any ideas?
> 
> possible bug ?

First of all, check that source and destination have the same color
depth, only blit knows how to deal with different color depths,
and it may be working for scaling up because of luck.



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