summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine')
-rw-r--r--apps/plugins/searchengine/Makefile13
-rw-r--r--apps/plugins/searchengine/searchengine.h7
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)
24OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 24OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
25DIRS = . 25DIRS = .
26 26
27 27LDS := ../plugin.lds
28ifndef SIMVER 28OUTPUT = $(OUTDIR)/searchengine.rock
29ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets
30 OUTPUT = $(OUTDIR)/searchengine.rock
31else ## iRiver target
32 LDS := ../plugin.lds
33 OUTPUT = $(OUTDIR)/searchengine.rock
34endif
35else ## simulators
36 OUTPUT = $(OUTDIR)/searchengine.rock
37endif
38 29
39all: $(OUTPUT) 30all: $(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
25extern int w, h, y; 25extern 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); \
31rb->lcd_update() 32rb->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
33extern struct plugin_api* rb; 40extern struct plugin_api* rb;
34 41