[Lemon-commits] ladanyi: r3388 - glemon/branches/akos
Lemon SVN
svn at lemon.cs.elte.hu
Sun Nov 18 14:49:02 CET 2007
Author: ladanyi
Date: Sun Nov 18 14:49:02 2007
New Revision: 3388
Modified:
glemon/branches/akos/graph_displayer_canvas-event.cc
Log:
Ported r3274 from trunk.
Modified: glemon/branches/akos/graph_displayer_canvas-event.cc
==============================================================================
--- glemon/branches/akos/graph_displayer_canvas-event.cc (original)
+++ glemon/branches/akos/graph_displayer_canvas-event.cc Sun Nov 18 14:49:02 2007
@@ -933,7 +933,7 @@
//that phase
//we normalize that to one, to be able to give percentage
//value for the function
- double rel_pos=(pos-(phase/6))*6;
+ double rel_pos=(pos-(phase/6.0))*6.0;
switch(phase)
{
@@ -953,7 +953,7 @@
color.set_rgb_p (0, 1-rel_pos, 1);
break;
case 5:
- color.set_rgb_p ((rel_pos/3), 0, 1);
+ color.set_rgb_p ((rel_pos/3.0), 0, 1);
break;
default:
std::cout << "Wrong phase: " << phase << " " << pos << std::endl;
More information about the Lemon-commits
mailing list