1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 17:41:13 +02:00

Make Bevel2 widget antialiased

Hat tip to Jonatã Bolzan.
This commit is contained in:
James Crook
2019-09-05 13:02:31 +01:00
parent fad541e818
commit 76d52fdc99

View File

@@ -232,10 +232,10 @@ void AColor::Bevel2
int h = wxMin( r.height, Bmp.GetHeight() ); int h = wxMin( r.height, Bmp.GetHeight() );
dc.Blit( r.x,r.y,r.width/2, h, &memDC, 0, 0 ); dc.Blit( r.x,r.y,r.width/2, h, &memDC, 0, 0, wxCOPY, true );
int r2 = r.width - r.width/2; int r2 = r.width - r.width/2;
dc.Blit( r.x+r.width/2,r.y,r2, h, &memDC, dc.Blit( r.x+r.width/2,r.y,r2, h, &memDC,
Bmp.GetWidth() - r2, 0 ); Bmp.GetWidth() - r2, 0, wxCOPY, true );
} }
wxColour AColor::Blend( const wxColour & c1, const wxColour & c2 ) wxColour AColor::Blend( const wxColour & c1, const wxColour & c2 )