diff options
-rw-r--r-- | apps/plugins/test_greylib_bitmap_scale.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/plugins/test_greylib_bitmap_scale.c b/apps/plugins/test_greylib_bitmap_scale.c index 1c4089b5ce..3e82c23175 100644 --- a/apps/plugins/test_greylib_bitmap_scale.c +++ b/apps/plugins/test_greylib_bitmap_scale.c | |||
@@ -23,6 +23,17 @@ | |||
23 | #include "lib/grey.h" | 23 | #include "lib/grey.h" |
24 | #include "lib/pluginlib_bmp.h" | 24 | #include "lib/pluginlib_bmp.h" |
25 | 25 | ||
26 | #if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | ||
27 | (CONFIG_KEYPAD == IPOD_1G2G_PAD) | ||
28 | #define GBS_QUIT BUTTON_MENU | ||
29 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | ||
30 | #define GBS_QUIT BUTTON_RC_REC | ||
31 | #elif defined(BUTTON_OFF) | ||
32 | #define GBS_QUIT BUTTON_OFF | ||
33 | #else | ||
34 | #define GBS_QUIT BUTTON_POWER | ||
35 | #endif | ||
36 | |||
26 | #if LCD_DEPTH == 1 | 37 | #if LCD_DEPTH == 1 |
27 | #define BMP_LOAD read_bmp_file | 38 | #define BMP_LOAD read_bmp_file |
28 | #else | 39 | #else |
@@ -74,7 +85,8 @@ enum plugin_status plugin_start(const void* parameter) | |||
74 | grey_ub_gray_bitmap(grey_bm_buf, x, y, grey_bm.width, grey_bm.height); | 85 | grey_ub_gray_bitmap(grey_bm_buf, x, y, grey_bm.width, grey_bm.height); |
75 | grey_show(true); | 86 | grey_show(true); |
76 | 87 | ||
77 | rb->button_get(true); | 88 | /* wait until user closes plugin */ |
89 | while (rb->button_get(true) != GBS_QUIT); | ||
78 | 90 | ||
79 | grey_release(); | 91 | grey_release(); |
80 | 92 | ||