diff options
Diffstat (limited to 'apps/plugins/mosaique.c')
-rw-r--r-- | apps/plugins/mosaique.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c index 51005fdabd..0f3e9ffc08 100644 --- a/apps/plugins/mosaique.c +++ b/apps/plugins/mosaique.c | |||
@@ -208,20 +208,20 @@ enum plugin_status plugin_start(const void* parameter) | |||
208 | x = 2*GFX_WIDTH-x; | 208 | x = 2*GFX_WIDTH-x; |
209 | sx=-sx; | 209 | sx=-sx; |
210 | } | 210 | } |
211 | 211 | ||
212 | if (x<0) | 212 | if (x<0) |
213 | { | 213 | { |
214 | x = -x; | 214 | x = -x; |
215 | sx = -sx; | 215 | sx = -sx; |
216 | } | 216 | } |
217 | 217 | ||
218 | y+=sy; | 218 | y+=sy; |
219 | if (y>GFX_HEIGHT) | 219 | if (y>GFX_HEIGHT) |
220 | { | 220 | { |
221 | y = 2*GFX_HEIGHT-y; | 221 | y = 2*GFX_HEIGHT-y; |
222 | sy=-sy; | 222 | sy=-sy; |
223 | } | 223 | } |
224 | 224 | ||
225 | if (y<0) | 225 | if (y<0) |
226 | { | 226 | { |
227 | y = -y; | 227 | y = -y; |
@@ -235,7 +235,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
235 | MYLCD(update)(); | 235 | MYLCD(update)(); |
236 | 236 | ||
237 | rb->sleep(HZ/timer); | 237 | rb->sleep(HZ/timer); |
238 | 238 | ||
239 | button = rb->button_get(false); | 239 | button = rb->button_get(false); |
240 | switch (button) | 240 | switch (button) |
241 | { | 241 | { |
@@ -254,7 +254,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
254 | if (timer>20) | 254 | if (timer>20) |
255 | timer=5; | 255 | timer=5; |
256 | break; | 256 | break; |
257 | 257 | ||
258 | case MOSAIQUE_RESTART: | 258 | case MOSAIQUE_RESTART: |
259 | 259 | ||
260 | sx = rb->rand() % (GFX_HEIGHT/2) + 1; | 260 | sx = rb->rand() % (GFX_HEIGHT/2) + 1; |
@@ -278,5 +278,3 @@ enum plugin_status plugin_start(const void* parameter) | |||
278 | } | 278 | } |
279 | } | 279 | } |
280 | } | 280 | } |
281 | |||
282 | |||