diff options
Diffstat (limited to 'apps/plugins/searchengine/searchengine.h')
-rw-r--r-- | apps/plugins/searchengine/searchengine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/searchengine/searchengine.h b/apps/plugins/searchengine/searchengine.h index 752e9ad0e4..d89c9c2a0e 100644 --- a/apps/plugins/searchengine/searchengine.h +++ b/apps/plugins/searchengine/searchengine.h | |||
@@ -23,12 +23,19 @@ | |||
23 | #include <autoconf.h> | 23 | #include <autoconf.h> |
24 | 24 | ||
25 | extern int w, h, y; | 25 | extern int w, h, y; |
26 | #ifdef HAVE_LCD_BITMAP | ||
26 | #define PUTS(str) do { \ | 27 | #define PUTS(str) do { \ |
27 | rb->lcd_putsxy(1, y, str); \ | 28 | rb->lcd_putsxy(1, y, str); \ |
28 | rb->lcd_getstringsize(str, &w, &h); \ | 29 | rb->lcd_getstringsize(str, &w, &h); \ |
29 | y += h + 1; \ | 30 | y += h + 1; \ |
30 | } while (0); \ | 31 | } while (0); \ |
31 | rb->lcd_update() | 32 | rb->lcd_update() |
33 | #else | ||
34 | #define PUTS(str) do { \ | ||
35 | rb->lcd_puts(0, y, str); \ | ||
36 | y = (y + 1) % 2; \ | ||
37 | } while (0); | ||
38 | #endif | ||
32 | 39 | ||
33 | extern struct plugin_api* rb; | 40 | extern struct plugin_api* rb; |
34 | 41 | ||