From 0665614b85f1495c75fc1324d7bcead123009e91 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 23 Nov 2021 22:15:00 +0200 Subject: [PATCH] Meter: Fix GetLuminance wxWidgets version dependency Signed-off-by: Mart Raudsepp Reference-to: https://github.com/tenacityteam/tenacity/pull/678 --- src/widgets/Meter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp index f82c5ba97..72672aed4 100644 --- a/src/widgets/Meter.cpp +++ b/src/widgets/Meter.cpp @@ -473,7 +473,7 @@ void MeterPanel::OnErase(wxEraseEvent & WXUNUSED(event)) static double GetColourLuminance(wxColour color) { -#if wxCHECK_VERSION(3, 1, 0) +#if wxCHECK_VERSION(3, 1, 3) return color.GetLuminance(); #else // Standard RGB to YIQ conversion for the luma (Y) part, used also by wx3.1