summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2005-04-12 09:39:01 +0000
committerdeva <deva>2005-04-12 09:39:01 +0000
commit58f1ff9053fcbdbb65bfcd5e6815ec7417c3cd2e (patch)
treee5e4d529ca6509f9a58b7b2c54ecf82c9f659e14
parentce6d2d79e44da70b5ce47621e6f5466fe6565355 (diff)
Fixed missing include, and wrong abs.
-rw-r--r--src/mainwindow.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index cd322b9..27452ce 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -37,6 +37,8 @@
#include <qlayout.h>
#include <qstatusbar.h>
+#include <math.h>
+
//#include "mgui_alert.h"
//#include "mgui_datasocket.h"
@@ -218,7 +220,7 @@ void MainWindow::createGui()
void MainWindow::redraw_edge()
{
rec_edge_counter += SPEED;
- float val = abs(sin(rec_edge_counter));
+ float val = fabs(sin(rec_edge_counter));
img_recedge->setBackgroundColor(QColor((int) ((255 - GREY) * val + GREY),
(int) (GREY - (GREY * val)),
(int) (GREY - (GREY * val))));