From 58f1ff9053fcbdbb65bfcd5e6815ec7417c3cd2e Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 12 Apr 2005 09:39:01 +0000 Subject: Fixed missing include, and wrong abs. --- src/mainwindow.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #include +#include + //#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)))); -- cgit v1.2.3