diff options
Diffstat (limited to 'apps/plugins/searchengine')
-rw-r--r-- | apps/plugins/searchengine/Makefile | 13 | ||||
-rw-r--r-- | apps/plugins/searchengine/searchengine.h | 7 |
2 files changed, 9 insertions, 11 deletions
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile index 1ecd12803b..e6e980b7b0 100644 --- a/apps/plugins/searchengine/Makefile +++ b/apps/plugins/searchengine/Makefile | |||
@@ -24,17 +24,8 @@ SOURCES = $(SRC) | |||
24 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | 24 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) |
25 | DIRS = . | 25 | DIRS = . |
26 | 26 | ||
27 | 27 | LDS := ../plugin.lds | |
28 | ifndef SIMVER | 28 | OUTPUT = $(OUTDIR)/searchengine.rock |
29 | ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets | ||
30 | OUTPUT = $(OUTDIR)/searchengine.rock | ||
31 | else ## iRiver target | ||
32 | LDS := ../plugin.lds | ||
33 | OUTPUT = $(OUTDIR)/searchengine.rock | ||
34 | endif | ||
35 | else ## simulators | ||
36 | OUTPUT = $(OUTDIR)/searchengine.rock | ||
37 | endif | ||
38 | 29 | ||
39 | all: $(OUTPUT) | 30 | all: $(OUTPUT) |
40 | 31 | ||
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 | ||