summaryrefslogtreecommitdiff
path: root/apps/plugins/plasma.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plasma.c')
-rw-r--r--apps/plugins/plasma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/plasma.c b/apps/plugins/plasma.c
index 52f4204a17..4359e6e8b6 100644
--- a/apps/plugins/plasma.c
+++ b/apps/plugins/plasma.c
@@ -153,10 +153,11 @@ void cleanup(void)
153int main(void) 153int main(void)
154{ 154{
155 plasma_frequency = 1; 155 plasma_frequency = 1;
156 int action, delay, x, y; 156 int action, x, y;
157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0; 157 unsigned char p1,p2,p3,p4,t1,t2,t3,t4, z,z0;
158 long last_tick = *rb->current_tick; 158 long last_tick = *rb->current_tick;
159#ifdef HAVE_ADJUSTABLE_CPU_FREQ 159#ifdef HAVE_ADJUSTABLE_CPU_FREQ
160 int delay;
160 int cumulated_lag = 0; 161 int cumulated_lag = 0;
161#endif 162#endif
162#ifdef HAVE_LCD_COLOR 163#ifdef HAVE_LCD_COLOR
@@ -243,8 +244,8 @@ int main(void)
243 grey_ub_gray_bitmap(greybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT); 244 grey_ub_gray_bitmap(greybuffer, 0, 0, LCD_WIDTH, LCD_HEIGHT);
244#endif 245#endif
245 246
246 delay = last_tick - *rb->current_tick + HZ/33;
247#ifdef HAVE_ADJUSTABLE_CPU_FREQ 247#ifdef HAVE_ADJUSTABLE_CPU_FREQ
248 delay = last_tick - *rb->current_tick + HZ/33;
248 if (!boosted && delay < 0) 249 if (!boosted && delay < 0)
249 { 250 {
250 cumulated_lag -= delay; /* proportional increase */ 251 cumulated_lag -= delay; /* proportional increase */