mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
4c6bc14c62
fixes #1360
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From 8e1d4a498e02ac2398aa4b5478e3d265319f0e41 Mon Sep 17 00:00:00 2001
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
Date: Sun, 8 May 2016 14:56:39 -0600
|
|
Subject: [PATCH 2/2] visualisations: fix ambiguous abs call
|
|
|
|
---
|
|
mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
|
|
index 1140372..554b1f9 100644
|
|
--- a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
|
|
+++ b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
|
|
@@ -23,7 +23,7 @@ void VideoVisualCircles::DrawPriv(MythPainter *painter, QPaintDevice* device)
|
|
painter->Begin(device);
|
|
for (int i = 0; i < count; i++, rad += m_range, red += incr, green -= incr)
|
|
{
|
|
- double mag = abs((m_magnitudes[i] + m_magnitudes[i + count]) / 2.0);
|
|
+ double mag = fabs((m_magnitudes[i] + m_magnitudes[i + count]) / 2.0);
|
|
if (mag > 1.0)
|
|
{
|
|
pen.setWidth((int)mag);
|
|
--
|
|
2.8.2
|
|
|