summaryrefslogtreecommitdiff
path: root/apps/plugins/rockblox.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-22 10:24:28 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-22 10:24:28 +0000
commit29361abf744ed116cec04ca03e754ddd2794b76c (patch)
treed336dd19570faed037aef9064ce3c490c50ed6df /apps/plugins/rockblox.c
parentbca8edd856cee3a3b469ef9fe2770a191b590fde (diff)
downloadrockbox-29361abf744ed116cec04ca03e754ddd2794b76c.tar.gz
rockbox-29361abf744ed116cec04ca03e754ddd2794b76c.zip
Adapt most single-file plugins to the M3 keypad and screen. It's still preliminary, as many plugins now can't be left without the remote. The plugins need to be converted to use the action API (but not pluginlib actions). Plugins are not enabled yet. * Simplify the bitmap handling in the source of some plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16737 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r--apps/plugins/rockblox.c66
1 files changed, 45 insertions, 21 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index d4d9048797..f0bdd2a510 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -200,6 +200,17 @@ PLUGIN_HEADER
200#define ROCKBLOX_DROP BUTTON_SELECT 200#define ROCKBLOX_DROP BUTTON_SELECT
201#define ROCKBLOX_RESTART BUTTON_DISPLAY 201#define ROCKBLOX_RESTART BUTTON_DISPLAY
202 202
203#elif CONFIG_KEYPAD == IAUDIO_M3_PAD
204
205#define ROCKBLOX_OFF BUTTON_RC_REC
206#define ROCKBLOX_ROTATE_RIGHT BUTTON_RC_VOL_DOWN
207#define ROCKBLOX_ROTATE_LEFT BUTTON_RC_VOL_UP
208#define ROCKBLOX_DOWN BUTTON_RC_MENU
209#define ROCKBLOX_LEFT BUTTON_RC_REW
210#define ROCKBLOX_RIGHT BUTTON_RC_FF
211#define ROCKBLOX_DROP BUTTON_RC_PLAY
212#define ROCKBLOX_RESTART BUTTON_RC_MODE
213
203#else 214#else
204#error No keymap defined! 215#error No keymap defined!
205#endif 216#endif
@@ -325,6 +336,32 @@ PLUGIN_HEADER
325#define LEVEL_Y 49 336#define LEVEL_Y 49
326#define LINES_Y 82 337#define LINES_Y 82
327 338
339#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
340
341#define BLOCK_WIDTH 5
342#define BLOCK_HEIGHT 5
343#define BOARD_X 14
344#define BOARD_Y 0
345#define PREVIEW_X 98
346#define PREVIEW_Y 88
347#define LABEL_X 80
348#define SCORE_Y 15
349#define LEVEL_Y 45
350#define LINES_Y 74
351
352#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80)
353
354#define BLOCK_WIDTH 4
355#define BLOCK_HEIGHT 4
356#define BOARD_X 10
357#define BOARD_Y 0
358#define PREVIEW_X 89
359#define PREVIEW_Y 61
360#define LABEL_X 78
361#define SCORE_Y 10
362#define LEVEL_Y 30
363#define LINES_Y 50
364
328#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 128) 365#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 128)
329 366
330#define BLOCK_WIDTH 6 367#define BLOCK_WIDTH 6
@@ -338,18 +375,18 @@ PLUGIN_HEADER
338#define LEVEL_Y 49 375#define LEVEL_Y 49
339#define LINES_Y 82 376#define LINES_Y 82
340 377
341#elif (LCD_WIDTH == 132) && (LCD_HEIGHT == 80) 378#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 96)
342 379
343#define BLOCK_WIDTH 4 380#define BLOCK_WIDTH 4
344#define BLOCK_HEIGHT 4 381#define BLOCK_HEIGHT 4
345#define BOARD_X 10 382#define BOARD_X 14
346#define BOARD_Y 0 383#define BOARD_Y 2
347#define PREVIEW_X 89 384#define PREVIEW_X 89
348#define PREVIEW_Y 61 385#define PREVIEW_Y 76
349#define LABEL_X 78 386#define LABEL_X 70
350#define SCORE_Y 10 387#define SCORE_Y 14
351#define LEVEL_Y 30 388#define LEVEL_Y 39
352#define LINES_Y 50 389#define LINES_Y 64
353 390
354#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 64) 391#elif (LCD_WIDTH == 128) && (LCD_HEIGHT == 64)
355 392
@@ -378,19 +415,6 @@ PLUGIN_HEADER
378#define LEVEL_X 78 415#define LEVEL_X 78
379#define LINES_Y 51 416#define LINES_Y 51
380 417
381#elif (LCD_WIDTH == 138) && (LCD_HEIGHT == 110)
382
383#define BLOCK_WIDTH 5
384#define BLOCK_HEIGHT 5
385#define BOARD_X 14
386#define BOARD_Y 0
387#define PREVIEW_X 98
388#define PREVIEW_Y 88
389#define LABEL_X 80
390#define SCORE_Y 15
391#define LEVEL_Y 45
392#define LINES_Y 74
393
394#endif 418#endif
395 419
396#ifndef LEVEL_X 420#ifndef LEVEL_X