mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-16 00:27:42 +02:00
Meter: Fix GetLuminance wxWidgets version dependency
Signed-off-by: Mart Raudsepp <leio@gentoo.org> Reference-to: https://github.com/tenacityteam/tenacity/pull/678
This commit is contained in:
parent
697c0e764c
commit
0665614b85
@ -473,7 +473,7 @@ void MeterPanel::OnErase(wxEraseEvent & WXUNUSED(event))
|
|||||||
|
|
||||||
static double GetColourLuminance(wxColour color)
|
static double GetColourLuminance(wxColour color)
|
||||||
{
|
{
|
||||||
#if wxCHECK_VERSION(3, 1, 0)
|
#if wxCHECK_VERSION(3, 1, 3)
|
||||||
return color.GetLuminance();
|
return color.GetLuminance();
|
||||||
#else
|
#else
|
||||||
// Standard RGB to YIQ conversion for the luma (Y) part, used also by wx3.1
|
// Standard RGB to YIQ conversion for the luma (Y) part, used also by wx3.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user