Skip to content
Snippets Groups Projects
Commit 81643690 authored by Anthony Mallet's avatar Anthony Mallet
Browse files

[wip/oro-view] Fix a call to std::pow(int, int) that gcc-4.2.1 doesn't like

Use std::pow(float, int) instead.
While here, add a PLIST. Hi severin!
parent 5dc24c8a
No related branches found
No related tags found
No related merge requests found
@comment Sat May 12 12:29:17 CEST 2012
bin/oroview
etc/oro-view.json
share/oro-view/beam.png
share/oro-view/bloom.tga
share/oro-view/classes.png
share/oro-view/comment.png
share/oro-view/fonts/Aller_Bd.ttf
share/oro-view/fonts/Aller_Lt.ttf
share/oro-view/gource.style
share/oro-view/instances.png
share/oro-view/literals.png
share/oro-view/no.png
share/oro-view/no_photo.png
share/oro-view/yes.png
SHA1 (oro-view-1.0.1.tar.gz) = a292a7e5d781f38d050e49d40fb6b53030501f2a
RMD160 (oro-view-1.0.1.tar.gz) = 735e628a0d70f6264ca96c6c568b3ab9ef366866
Size (oro-view-1.0.1.tar.gz) = 336853 bytes
SHA1 (patch-aa) = bd45ce1ffac9099915f8496c337cbe5b1bc5ed94
Fix a call to std::pow(int, int) that gcc-4.2.1 doesn't like
Use std::pow(float, int) instead.
--- src/node_renderer.cpp~ 2011-10-13 15:29:31.000000000 +0200
+++ src/node_renderer.cpp 2012-05-11 11:24:03.000000000 +0200
@@ -105,7 +105,7 @@
if (current_distance_to_selected <= 1) return 1.0f;
- int distance = std::max(1, current_distance_to_selected);
+ float distance = std::max(1, current_distance_to_selected);
//float level = FADE_TIME - (idle_time * distance)/FADE_TIME;
// We use a function in (1-x^3) to smooth the fading of nodes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment