[Scummvm-devel] Non-hardcoded gameids

Max Horn max at quendi.de
Wed May 31 13:33:04 CEST 2006


Am 31.05.2006 um 17:04 schrieb David Given:

> Marcus Comstedt wrote:
> [...]
>> I should add that there is a backend function ARGBToColor() you  
>> can use
>> to convert a quadruple <a,r,g,b> of bytes to whatever pixel format  
>> that
>> the overlay uses.  But unless the overlay supports alpha, as  
>> indicated by
>> kFeatureOverlaySupportsAlpha, the "a" component will just be  
>> discarded.
>
> So if the overlay doesn't support alpha, how does the user see the  
> game
> canvas through it? There must be some way of preventing parts (or all)
> of it from being drawn.

It's done by implementing the alpha blending manually. Not a big  
problem since things are drawn over a static background when the  
overlay is active.

Bye,
Max






More information about the Scummvm-devel mailing list