summaryrefslogtreecommitdiffstats
path: root/kscreensaver/kdesavers/gravity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kscreensaver/kdesavers/gravity.cpp')
-rw-r--r--kscreensaver/kdesavers/gravity.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kscreensaver/kdesavers/gravity.cpp b/kscreensaver/kdesavers/gravity.cpp
index d6afc184..25adf2e2 100644
--- a/kscreensaver/kdesavers/gravity.cpp
+++ b/kscreensaver/kdesavers/gravity.cpp
@@ -398,18 +398,18 @@ void Gravity::buildParticle(int loop)
{0.5f,0.5f,1.0f},{0.75f,0.5f,1.0f},{1.0f,0.5f,1.0f},{1.0f,0.5f,0.75f}};
col = ( ++col ) % 12;
particle[loop].active=true;
- particle[loop].index=KApplication::random()%100;
+ particle[loop].index=TDEApplication::random()%100;
particle[loop].indexo=particle[loop].index;
- particle[loop].fade=float(KApplication::random()%100)/1000.0f+0.003f; // Random Fade Value
+ particle[loop].fade=float(TDEApplication::random()%100)/1000.0f+0.003f; // Random Fade Value
particle[loop].r=colors[col][0]; // Select Red From Color Table
particle[loop].g=colors[col][1]; // Select Green From Color Table
particle[loop].b=colors[col][2]; // Select Blue From Color Table
particle[loop].size=size;
- particle[loop].x = float(KApplication::random()%100-50)*4.0;
- particle[loop].y = float(KApplication::random()%20-10)*4.0;
- particle[loop].z = float(KApplication::random()%100-50)*4.0;
+ particle[loop].x = float(TDEApplication::random()%100-50)*4.0;
+ particle[loop].y = float(TDEApplication::random()%20-10)*4.0;
+ particle[loop].z = float(TDEApplication::random()%100-50)*4.0;
particle[loop].xo = particle[loop].x;
- if ((1+(KApplication::random() % 10) > 5))
+ if ((1+(TDEApplication::random() % 10) > 5))
particle[loop].yo = particle[loop].y;
else
particle[loop].yo = 0.0;