diff options
| author | Japa Illo | 2012-02-20 09:37:46 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-02-20 09:37:46 +0530 |
| commit | f5316b07d137a1b4807298e284b5d238825a1de6 (patch) | |
| tree | f7a7d356108be3991e148fab8ea116c6c2e9872e /GUI.cpp | |
| parent | b37199937ee7684da08ff36e6486ae2987d3bbb6 (diff) | |
| download | stonesense-f5316b07d137a1b4807298e284b5d238825a1de6.tar.gz stonesense-f5316b07d137a1b4807298e284b5d238825a1de6.tar.bz2 stonesense-f5316b07d137a1b4807298e284b5d238825a1de6.tar.xz | |
Added effects back. Still need work to scale properly.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'GUI.cpp')
| -rw-r--r-- | GUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1262,12 +1262,12 @@ void saveMegashot(bool tall){ al_unlock_mutex(config.readMutex);
}
-void draw_particle_cloud(int count, float centerX, float centerY, float rangeX, float rangeY, ALLEGRO_BITMAP *sprite)
+void draw_particle_cloud(int count, float centerX, float centerY, float rangeX, float rangeY, ALLEGRO_BITMAP *sprite, ALLEGRO_COLOR tint)
{
for(int i = 0;i < count;i++)
{
float drawx = centerX + ((((float)rand() / RAND_MAX) - 0.5) * rangeX);
float drawy = centerY + ((((float)rand() / RAND_MAX) - 0.5) * rangeY);
- al_draw_bitmap(sprite, drawx, drawy, 0);
+ al_draw_tinted_bitmap(sprite, tint, drawx, drawy, 0);
}
}
|
