diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:16:02 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:16:02 -0600 |
commit | ca76618006d430d1253cc6cc0a20dc2c6ca666f9 (patch) | |
tree | 2040fc1d273d66067b34cc67e97f06c2e2602aa1 /kscreensaver/kdesavers/gravity.cpp | |
parent | de2e00ccad5e4f0ef40e88290954c8ccb7d518a5 (diff) | |
download | tdeartwork-ca76618006d430d1253cc6cc0a20dc2c6ca666f9.tar.gz tdeartwork-ca76618006d430d1253cc6cc0a20dc2c6ca666f9.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'kscreensaver/kdesavers/gravity.cpp')
-rw-r--r-- | kscreensaver/kdesavers/gravity.cpp | 12 |
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; |