mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Add code for iota theme-bitmap
This #ifdeffed out TEST_CARD is useful for javascript code that shows how a theme will look, when applied to Audacity. With the code enabled, each pixel of audacity is painted with a colour that encodes the location in the theme image map that was used. Net result - in javascript you can change any colour in the theme cache and instantly see how Audacity will look.
This commit is contained in:
@@ -408,10 +408,12 @@ wxImage GetSubImageWithAlpha( const wxImage & Src, const wxRect &rect )
|
||||
data+=width;
|
||||
}
|
||||
|
||||
image.InitAlpha();
|
||||
if( !Src.HasAlpha() )
|
||||
return image;
|
||||
// OK, so we've copied the RGB data.
|
||||
// Now do the Alpha channel.
|
||||
wxASSERT( Src.HasAlpha() );
|
||||
image.InitAlpha();
|
||||
//wxASSERT( Src.HasAlpha() );
|
||||
|
||||
subleft/=3;
|
||||
width/=3;
|
||||
|
Reference in New Issue
Block a user