···482482483483}
484484485485-#ifdef HAVE_LCD_BITMAP
486485static inline void draw_veritcal_line_mark(struct screen * screen,
487486 int x, int y, int h)
488487{
···498497{
499498 int i,xi;
500499 unsigned long tracklen_seconds = tracklen/1000; /* duration in seconds */
501501-500500+502501 for (i=1; i < cue->track_count; i++)
503502 {
504503 /* Convert seconds prior to multiplication to avoid overflow. */
···506505 draw_veritcal_line_mark(screen, xi, y, h);
507506 }
508507}
509509-#endif
510508511509bool cuesheet_subtrack_changed(struct mp3entry *id3)
512510{
-2
apps/cuesheet.h
···7979/* skip to next track in the cuesheet towards "direction" (which is 1 or -1) */
8080bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos);
81818282-#ifdef HAVE_LCD_BITMAP
8382/* draw track markers on the progressbar */
8483void cue_draw_markers(struct screen *screen, struct cuesheet *cue,
8584 unsigned long tracklen,
8685 int x, int y, int w, int h);
8787-#endif
88868987/* check if the subtrack has changed */
9088bool cuesheet_subtrack_changed(struct mp3entry *id3);
···236236 int cols = (parent->width / listcfg[screen]->width);
237237 current_column = (cur_line)%cols;
238238 current_row = (cur_line)/cols;
239239-239239+240240 skin_viewport->vp.x = parent->x + listcfg[screen]->width*current_column + original_x;
241241 skin_viewport->vp.y = parent->y + listcfg[screen]->height*current_row + original_y;
242242 }
···249249 (listcfg[screen]->height*cur_line);
250250 }
251251 display->set_viewport(&skin_viewport->vp);
252252-#ifdef HAVE_LCD_BITMAP
253252 /* Set images to not to be displayed */
254253 struct skin_token_list *imglist = SKINOFFSETTOPTR(get_skin_buffer(wps.data), wps.data->images);
255254 while (imglist)
···259258 img->display = -1;
260259 imglist = SKINOFFSETTOPTR(get_skin_buffer(wps.data), imglist->next);
261260 }
262262-#endif
263261 struct skin_element** children = SKINOFFSETTOPTR(get_skin_buffer(wps.data), viewport->children);
264262 skin_render_viewport(SKINOFFSETTOPTR(get_skin_buffer(wps.data), (intptr_t)children[0]),
265263 &wps, skin_viewport, SKIN_REFRESH_ALL);
266266-#ifdef HAVE_LCD_BITMAP
267264 wps_display_images(&wps, &skin_viewport->vp);
268268-#endif
269265 /* force disableing scroll because it breaks later */
270266 if (!is_selected)
271267 {
-4
apps/gui/icon.c
···144144145145void screen_put_cursorxy(struct screen * display, int x, int y, bool on)
146146{
147147-#ifdef HAVE_LCD_BITMAP
148147 screen_put_icon(display, x, y, on?Icon_Cursor:0);
149149-#else
150150- screen_put_icon(display, x, y, on?CURSOR_CHAR:-1);
151151-#endif
152148}
153149154150static int buflib_move_callback(int handle, void* current, void* new)
-4
apps/gui/icon.h
···2424#include "screen_access.h"
2525/* Defines a type for the icons since it's not the same thing on
2626 * char-based displays and bitmap displays */
2727-#ifdef HAVE_LCD_BITMAP
2827typedef const unsigned char * ICON;
2929-#else
3030-typedef long ICON;
3131-#endif
32283329/* Don't #ifdef icon values, or we wont be able to use the same
3430 bmp for every target. */
-2
apps/gui/line.c
···294294 }
295295}
296296297297-#ifdef HAVE_LCD_BITMAP
298297static void style_line(struct screen *display,
299298 int x, int y, struct line_desc *line)
300299{
···380379 }
381380#endif
382381}
383383-#endif /* HAVE_LCD_BITMAP */
384382385383void vput_line(struct screen *display,
386384 int x, int y, struct line_desc *line,
-44
apps/gui/list.c
···4747 */
4848#define FRAMEDROP_TRIGGER 6
49495050-#ifdef HAVE_LCD_BITMAP
5150static int offset_step = 16; /* pixels per screen scroll step */
5251/* should lines scroll out of the screen */
5352static bool offset_out_of_view = false;
5454-#endif
55535654static void gui_list_select_at_offset(struct gui_synclist * gui_list,
5755 int offset);
5856void list_draw(struct screen *display, struct gui_synclist *list);
59576060-#ifdef HAVE_LCD_BITMAP
6158static long last_dirty_tick;
6259static struct viewport parent[NB_SCREENS];
6360···9289 }
9390 list->dirty_tick = current_tick;
9491}
9595-#else
9696-static struct viewport parent[NB_SCREENS] =
9797-{
9898- [SCREEN_MAIN] =
9999- {
100100- .x = 0,
101101- .y = 0,
102102- .width = LCD_WIDTH,
103103- .height = LCD_HEIGHT
104104- },
105105-};
10692107107-#define list_init_viewports(a)
108108-#define list_is_dirty(a) false
109109-#endif
110110-111111-#ifdef HAVE_LCD_BITMAP
11293static int list_nb_lines(struct gui_synclist *list, enum screen_type screen)
11394{
11495 struct viewport *vp = list->parent[screen];
···148129#endif
149130}
150131151151-#else
152152-#define list_display_title(l, i) false
153153-#define list_get_nb_lines(list, screen) \
154154- viewport_get_nb_lines((list)->parent[(screen)]);
155155-#define list_init_item_height(l, i)
156156-#endif
157157-158132/*
159133 * Initializes a scrolling list
160134 * - gui_list : the list structure to initialize
···181155 FOR_NB_SCREENS(i)
182156 {
183157 gui_list->start_item[i] = 0;
184184-#ifdef HAVE_LCD_BITMAP
185158 gui_list->offset_position[i] = 0;
186186-#endif
187159 if (list_parent)
188160 gui_list->parent[i] = &list_parent[i];
189161 else
···216188}
217189218190219219-#ifdef HAVE_LCD_BITMAP
220191int gui_list_get_item_offset(struct gui_synclist * gui_list,
221192 int item_width,
222193 int text_pos,
···248219249220 return item_offset;
250221}
251251-#endif
252222253223/*
254224 * Force a full screen update.
···264234 }
265235 FOR_NB_SCREENS(i)
266236 {
267267-#ifdef HAVE_LCD_BITMAP
268237 if (!skinlist_draw(&screens[i], gui_list))
269269-#endif
270238 list_draw(&screens[i], gui_list);
271239 }
272240}
···481449 }
482450}
483451484484-#ifdef HAVE_LCD_BITMAP
485452void gui_list_screen_scroll_step(int ofs)
486453{
487454 offset_step = ofs;
···491458{
492459 offset_out_of_view = enable;
493460}
494494-#endif /* HAVE_LCD_BITMAP */
495461496462/*
497463 * Set the title and title icon of the list. Setting title to NULL disables
···502468{
503469 gui_list->title = title;
504470 gui_list->title_icon = icon;
505505-#ifdef HAVE_LCD_BITMAP
506471 FOR_NB_SCREENS(i)
507472 sb_set_title_text(title, icon, i);
508508-#endif
509473 send_event(GUI_EVENT_ACTIONUPDATE, (void*)1);
510474}
511475512476void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items)
513477{
514478 lists->nb_items = nb_items;
515515-#ifdef HAVE_LCD_BITMAP
516479 FOR_NB_SCREENS(i)
517480 {
518481 lists->offset_position[i] = 0;
519482 }
520520-#endif
521483}
522484int gui_synclist_get_nb_items(struct gui_synclist * lists)
523485{
···576538 lists->limit_scroll = scroll;
577539}
578540579579-#ifdef HAVE_LCD_BITMAP
580541/*
581542 * Makes all the item in the list scroll by one step to the right.
582543 * Should stop increasing the value when reaching the widest item value
···608569 lists->offset_position[i] = 0;
609570 }
610571}
611611-#endif /* HAVE_LCD_BITMAP */
612572613573bool gui_synclist_keyclick_callback(int action, void* data)
614574{
···652612 int *actionptr, enum list_wrap wrap)
653613{
654614 int action = *actionptr;
655655-#ifdef HAVE_LCD_BITMAP
656615 static bool pgleft_allow_cancel = false;
657657-#endif
658616659617#ifdef HAVE_WHEEL_ACCELERATION
660618 int next_item_modifier = button_apply_acceleration(get_action_data());
···753711 *actionptr = ACTION_STD_NEXT;
754712 return true;
755713756756-#ifdef HAVE_LCD_BITMAP
757714 case ACTION_TREE_PGRIGHT:
758715 gui_synclist_scroll_right(lists);
759716 gui_synclist_draw(lists);
···784741 pgleft_allow_cancel = false; /* stop ACTION_TREE_PAGE_LEFT
785742 skipping to root */
786743 return true;
787787-#endif
788744/* for pgup / pgdown, we are obliged to have a different behaviour depending
789745 * on the screen for which the user pressed the key since for example, remote
790746 * and main screen doesn't have the same number of lines */
+2-6
apps/gui/list.h
···102102 int selected_size;
103103 /* the number of pixels each line occupies (including optional padding on touchscreen */
104104 int line_height[NB_SCREENS];
105105-#ifdef HAVE_LCD_BITMAP
106105 int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */
107107-#endif
108106 long scheduled_talk_tick, last_talked_tick, dirty_tick;
109107110108 list_get_icon *callback_get_item_icon;
···127125};
128126129127130130-#ifdef HAVE_LCD_BITMAP
131128extern void list_init(void);
132129/* parse global setting to static int */
133130extern void gui_list_screen_scroll_step(int ofs);
134131135132/* parse global setting to static bool */
136133extern void gui_list_screen_scroll_out_of_view(bool enable);
137137-#endif /* HAVE_LCD_BITMAP */
138134139135extern void gui_synclist_init(
140136 struct gui_synclist * lists,
···179175extern bool gui_synclist_do_button(struct gui_synclist * lists,
180176 int *action,
181177 enum list_wrap);
182182-#if defined(HAVE_LCD_BITMAP) && !defined(PLUGIN)
178178+#if !defined(PLUGIN)
183179struct listitem_viewport_cfg {
184180 struct wps_data *data;
185181 OFFSETTYPE(char *) label;
···204200bool skinlist_needs_scrollbar(enum screen_type screen);
205201void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown);
206202int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list);
207207-#endif
203203+#endif /* !PLUGIN) */
208204209205#if defined(HAVE_TOUCHSCREEN)
210206/* this needs to be fixed if we ever get more than 1 touchscreen on a target */
···2323#define _GUI_SCROLLBAR_H_
2424#include "screen_access.h"
25252626-#ifdef HAVE_LCD_BITMAP
2727-2826enum orientation {
2927 VERTICAL = 0x0000, /* Vertical orientation */
3028 HORIZONTAL = 0x0001, /* Horizontal orientation */
···6462 unsigned flags);
6563extern void show_busy_slider(struct screen *s, int x, int y,
6664 int width, int height);
6767-#endif /* HAVE_LCD_BITMAP */
6865#endif /* _GUI_SCROLLBAR_H_ */
+1-18
apps/gui/skin_engine/skin_display.c
···4747#include "list.h"
4848#include "option_select.h"
49495050-#ifdef HAVE_LCD_BITMAP
5150#include "peakmeter.h"
5251/* Image stuff */
5352#include "bmp.h"
5453#ifdef HAVE_ALBUMART
5554#include "albumart.h"
5656-#endif
5755#endif
58565957#include "cuesheet.h"
···9290 skin_render(gwps, skin_do_full_update(skin, screen) ?
9391 SKIN_REFRESH_ALL : update_type);
9492}
9595-9696-#ifdef HAVE_LCD_BITMAP
9797-98939994#ifdef AB_REPEAT_ENABLE
10095···171166 int x = pb->x, y = pb->y, width = pb->width, height = pb->height;
172167 unsigned long length, end;
173168 int flags = HORIZONTAL;
174174-169169+175170 if (height < 0)
176171 height = font_get(vp->font)->height;
177172···423418 display->set_drawmode(DRMODE_SOLID);
424419}
425420426426-#endif /* HAVE_LCD_BITMAP */
427427-428421/* Evaluate the conditional that is at *token_index and return whether a skip
429422 has ocurred. *token_index is updated with the new position.
430423*/
···587580 else
588581 {
589582 linedes->scroll = false;
590590-#ifdef HAVE_LCD_BITMAP
591583 /* clear the line first */
592584 display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
593585 display->fillrect(0, line*string_height, viewport_width, string_height);
594586 display->set_drawmode(DRMODE_SOLID);
595595-#endif
596587597588 /* Nasty hack: we output an empty scrolling string,
598589 which will reset the scroller for that line */
599590 display->puts_scroll(0, line, (unsigned char *)"");
600600-#ifdef HAVE_LCD_BITMAP
601591 line *= string_height;
602592 center_xpos = (viewport_width-center_width)/2;
603593 right_xpos = viewport_width-right_width;
604604-#endif
605594 /* print aligned strings. print whole line at once so that %Vs works
606595 * across the full viewport width */
607596 char *left = format_align->left ?: "";
···614603 }
615604}
616605617617-#ifdef HAVE_LCD_BITMAP
618606void draw_peakmeters(struct gui_wps *gwps, int line_number,
619607 struct viewport *viewport)
620608{
···645633 (void)screen;
646634 (void)data;
647635 bool draw = false;
648648-#ifdef HAVE_LCD_BITMAP
649636 if (data->wps_sb_tag)
650637 draw = data->show_sb_on_wps;
651638 else if (statusbar_position(screen) != STATUSBAR_OFF)
652639 draw = true;
653653-#endif
654640 return draw;
655641}
656656-#endif
657642658643/* do the button loop as often as required for the peak meters to update
659644 * with a good refresh rate.
···661646int skin_wait_for_action(enum skinnable_screens skin, int context, int timeout)
662647{
663648 int button = ACTION_NONE;
664664-#ifdef HAVE_LCD_BITMAP
665649 /* when the peak meter is enabled we want to have a
666650 few extra updates to make it look smooth. On the
667651 other hand we don't want to waste energy if it
···700684 /* The peak meter is disabled
701685 -> no additional screen updates needed */
702686 else
703703-#endif
704687 {
705688 button = get_action(context, timeout);
706689 }
-2
apps/gui/skin_engine/skin_display.h
···2929#define _SKIN_DISPLAY_H_
303031313232-#ifdef HAVE_LCD_BITMAP
3332void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb);
3433void draw_playlist_viewer_list(struct gui_wps *gwps, struct playlistviewer *viewer);
3534/* clears the area where the image was shown */
···4039void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps,
4140 struct skin_viewport* skin_viewport, unsigned long refresh_type);
42414343-#endif
44424543/* Evaluate the conditional that is at *token_index and return whether a skip
4644 has ocurred. *token_index is updated with the new position.
···5353 */
5454void viewportmanager_init(void) INIT_ATTR;
55555656-#ifdef HAVE_LCD_BITMAP
5756void viewportmanager_theme_enable(enum screen_type screen, bool enable,
5857 struct viewport *viewport);
5958/* Force will cause a redraw even if the theme was previously and
···6766#ifdef HAVE_TOUCHSCREEN
6867bool viewport_point_within_vp(const struct viewport *vp,
6968 const int x, const int y);
7070-#endif
7171-7269#endif
73707471#endif /* __PCTOOL__ */
···25252626int kbd_input(char* buffer, int buflen, unsigned short *kbd);
27272828-#ifdef HAVE_LCD_BITMAP
2928int load_kbd(unsigned char* filename);
3030-#endif
31293230#endif
-2
apps/lang/SOURCES
···3939vlaams.lang
4040wallisertitsch.lang
4141walon.lang
4242-#ifdef HAVE_LCD_BITMAP /* Not for the Player */
4342arabic.lang
4443chinese-simp.lang
4544chinese-trad.lang
···4746japanese.lang
4847korean.lang
4948thai.lang
5050-#endif /* HAVE_LCD_BITMAP */
-2
apps/language.c
···2626#include "lang.h"
2727#include "debug.h"
2828#include "string.h"
2929-#ifdef HAVE_LCD_BITMAP
3029#include "viewport.h"
3131-#endif
32303331/* The following header is generated by the build system and only defines
3432 MAX_LANGUAGE_SIZE to be the size of the largest currently available
···8989#include "settings.h"
9090#include "timer.h"
9191#include "playlist.h"
9292-#ifdef HAVE_LCD_BITMAP
9392#include "screendump.h"
9493#include "scrollbar.h"
9594#include "jpeg_load.h"
9695#include "../recorder/bmp.h"
9797-#endif
9896#include "statusbar.h"
9997#include "menu.h"
10098#include "rbunicode.h"
···156154#define PLUGIN_MAGIC 0x526F634B /* RocK */
157155158156/* increase this every time the api struct changes */
159159-#define PLUGIN_API_VERSION 238
157157+#define PLUGIN_API_VERSION 239
160158161159/* update this to latest version if a change to the api struct breaks
162160 backwards compatibility (and please take the opportunity to sort in any
163161 new function which are "waiting" at the end of the function table) */
164164-#define PLUGIN_MIN_API_VERSION 238
162162+#define PLUGIN_MIN_API_VERSION 239
165163166164/* plugin return codes */
167165/* internal returns start at 0x100 to make exit(1..255) work */
···331329332330 void (*viewport_set_defaults)(struct viewport *vp,
333331 const enum screen_type screen);
334334-#ifdef HAVE_LCD_BITMAP
335332 void (*viewportmanager_theme_enable)(enum screen_type screen, bool enable,
336333 struct viewport *viewport);
337334 void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw);
338335 void (*viewport_set_fullscreen)(struct viewport *vp,
339336 const enum screen_type screen);
340340-#endif
341337342338#ifdef HAVE_BACKLIGHT
343339 /* lcd backlight */
···597593598594#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
599595 /* special simulator hooks */
600600-#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8
596596+#if LCD_DEPTH < 8
601597 void (*sim_lcd_ex_init)(unsigned long (*getpixel)(int, int));
602598 void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height);
603599#endif
···900896 int count,
901897 bool signd);
902898903903-#ifdef HAVE_LCD_BITMAP
904899 int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize,
905900 int format, const struct custom_format *cformat);
906901 int (*read_bmp_fd)(int fd, struct bitmap *bm, int maxsize,
···912907 int format, const struct custom_format *cformat);
913908#endif
914909 void (*screen_dump_set_hook)(void (*hook)(int fh));
915915-#endif
916910 int (*show_logo)(void);
917911918912#ifdef HAVE_WHEEL_POSITION
···88clock
99#endif
10101111-/* For all targets with a bitmap display */
1212-#ifdef HAVE_LCD_BITMAP
1313-1411/* color horizontal-stride LCDs */
1512#if defined(HAVE_LCD_COLOR) && \
1613 (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE))
···5451zxbox
5552#endif
5653#endif
5757-5858-#endif /* HAVE_LCD_BITMAP */
59546055/* For all big enough colour screens, iriver H1x0 and iAudio M5 */
6156#if defined(HAVE_LCD_COLOR) && ( (LCD_HEIGHT >= 90 && LCD_WIDTH >=116) \
-3
apps/plugins/SUBDIRS.app_build
···88 */
99lua
1010lua_scripts
1111-#ifdef HAVE_LCD_BITMAP
12111312#if PLUGIN_BUFFER_SIZE > 0x20000
1413fft
···1918#ifdef HAVE_TAGCACHE
2019pictureflow
2120#endif
2222-2323-#endif /* HAVE_LCD_BITMAP */
24212522/* For all the swcodec targets */
2623#if MEMORYSIZE > 2 /* we need a lot of RAM for instruments */
···21212222#include "plugin.h"
23232424-#ifdef HAVE_LCD_BITMAP
2525-2624/*
2725 * Print a checkbox
2826 */
2927void checkbox(int x, int y, int width, int height, bool checked);
3030-3131-#endif
···3535 * lib/grey.h should be included before including this
3636 * header. For bitmap LCD's, defaults to rb->lcd_XXXX otherwise.
3737 */
3838-#if defined (HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && defined(__GREY_H__)
3838+#if (LCD_DEPTH < 4) && defined(__GREY_H__)
3939#define MYLCD_CFG_GREYLIB /* using greylib */
4040#define mylcd_(fn) grey_##fn
4141#define myxlcd_(fn) grey_##fn
···5151#define MYLCD_DEFAULT_FG GREY_BLACK
5252#define MYLCD_DEFAULT_BG GREY_WHITE
53535454-#elif defined (HAVE_LCD_BITMAP)
5454+#else
5555+5556#define MYLCD_CFG_RB_XLCD /* using standard (X)LCD routines */
5657#define mylcd_(fn) rb->lcd_##fn
5758#define myxlcd_(fn) xlcd_##fn
···6768#define MYLCD_DEFAULT_FG LCD_DEFAULT_FG
6869#define MYLCD_DEFAULT_BG LCD_DEFAULT_BG
69707070-#else
7171-#error Configuration not supported! Did you forget to include the correct lib header?
7271#endif /* end LCD type selection */
73727473/* Update functions */
7574#define mylcd_update mylcd_(update)
7676-#ifdef HAVE_LCD_BITMAP
7775#define mylcd_update_rect mylcd_(update_rect)
7878-#else
7979-static inline void mylcd_update_rect(int x, int y, int w, int h)
8080- { (void)x; (void)y; (void)w; (void)h; pgfx_update(); }
8181-#endif /* HAVE_LCD_BITMAP */
82768377/* Update functions - unbuffered : special handling for these
8478 * It is desirable to still evaluate arguments even if there will
···10498#define mylcd_set_drawmode mylcd_(set_drawmode)
10599#define mylcd_get_drawmode mylcd_(get_drawmode)
106100107107-#ifdef HAVE_LCD_BITMAP
108101#define mylcd_set_foreground mylcd_(set_foreground)
109102#define mylcd_get_foreground mylcd_(get_foreground)
110103#define mylcd_set_background mylcd_(set_background)
···112105#define mylcd_set_drawinfo mylcd_(set_drawinfo)
113106#define mylcd_setfont mylcd_(setfont)
114107#define mylcd_getstringsize mylcd_(getstringsize)
115115-#endif /* HAVE_LCD_BITMAP */
116108117109/* Whole display */
118110#define mylcd_clear_display mylcd_(clear_display)
···131123132124/* Filled Primitives */
133125#define mylcd_fillrect mylcd_(fillrect)
134134-#ifdef HAVE_LCD_BITMAP
135126#define mylcd_filltriangle myxlcd_(filltriangle)
136136-#endif /* HAVE_LCD_BITMAP */
137127138128/* Bitmaps */
139129#define mylcd_mono_bitmap_part mylcd_(mono_bitmap_part)
140130#define mylcd_mono_bitmap mylcd_(mono_bitmap)
141131142142-#ifdef HAVE_LCD_BITMAP
143132#define mylcd_gray_bitmap_part myxlcd_(gray_bitmap_part)
144133#define mylcd_gray_bitmap myxlcd_(gray_bitmap)
145134#if 0 /* possible, but not implemented in greylib */
146135#define mylcd_color_bitmap_part myxlcd_(color_bitmap_part)
147136#define mylcd_color_bitmap myxlcd_(color_bitmap)
148137#endif
149149-#endif /* HAVE_LCD_BITMAP */
150138151139/* Bitmaps - unbuffered */
152152-#ifdef HAVE_LCD_BITMAP
153140#define mylcd_ub_gray_bitmap_part myxlcd_ub_(gray_bitmap_part)
154141#define mylcd_ub_gray_bitmap myxlcd_ub_(gray_bitmap)
155155-#endif /* HAVE_LCD_BITMAP */
156142157143/* Text */
158144/* lcd_putsxyofs is static'ed in the core for now on color */
159159-#ifdef HAVE_LCD_BITMAP
160145#define mylcd_putsxyofs mylcd_(putsxyofs)
161146#define mylcd_putsxy mylcd_(putsxy)
162162-#endif /* HAVE_LCD_BITMAP */
163147164148/* Scrolling */
165165-#ifdef HAVE_LCD_BITMAP
166149#define mylcd_scroll_left myxlcd_(scroll_left)
167150#define mylcd_scroll_right myxlcd_(scroll_right)
168151#define mylcd_scroll_up myxlcd_(scroll_up)
169152#define mylcd_scroll_down myxlcd_(scroll_down)
170170-#endif /* HAVE_LCD_BITMAP */
171153172154/* Scrolling - unbuffered */
173173-#ifdef HAVE_LCD_BITMAP
174155#define mylcd_ub_scroll_left myxlcd_ub_(scroll_left)
175156#define mylcd_ub_scroll_right myxlcd_ub_(scroll_right)
176157#define mylcd_ub_scroll_up myxlcd_ub_(scroll_up)
177158#define mylcd_ub_scroll_down myxlcd_ub_(scroll_down)
178178-#endif /* HAVE_LCD_BITMAP */
179159180160/* Viewports */
181181-#ifdef HAVE_LCD_BITMAP
182161#define mylcd_clear_viewport mylcd_(clear_viewport)
183162#define mylcd_set_viewport mylcd_(set_viewport)
184163#define mylcd_viewport_set_fullscreen mylcd_viewport_(set_fullscreen)
185185-#endif /* HAVE_LCD_BITMAP */
186164187165#endif /* MYLCD_H */
+1-1
apps/plugins/lib/pluginlib_bmp.h
···3737*/
3838void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst);
39394040-#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4)
4040+#if (LCD_DEPTH < 4)
4141/**
4242 Same as simple_resize_bitmap except this is for use with greylib.
4343*/
···26262727#include "plugin.h"
28282929-#ifdef HAVE_LCD_BITMAP
3030-3129void xlcd_filltriangle(int x1, int y1, int x2, int y2, int x3, int y3);
3230void xlcd_filltriangle_screen(struct screen* display,
3331 int x1, int y1, int x2, int y2, int x3, int y3);
···5452void xlcd_scroll_up(int count);
5553void xlcd_scroll_down(int count);
56545757-#endif /* HAVE_LCD_BITMAP */
5855#endif /* __XLCD_H__ */
5956
···5050 int lcdwidth, lcdheight;
5151 int depth;
5252 int (*getnblines)(void);
5353-#ifdef HAVE_LCD_BITMAP
5453 int pixel_format;
5555-#endif
5654 int (*getcharwidth)(void);
5755 int (*getcharheight)(void);
5856 bool is_color;
···6462 int (*getwidth)(void);
6563 int (*getheight)(void);
6664 int (*getstringsize)(const unsigned char *str, int *w, int *h);
6767-#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) /* always bitmap */
6865 void (*setfont)(int newfont);
6966 int (*getuifont)(void);
7067 void (*setuifont)(int newfont);
···104101 void (*drawline)(int x1, int y1, int x2, int y2);
105102 void (*vline)(int x, int y1, int y2);
106103 void (*hline)(int x1, int x2, int y);
107107-#endif /* HAVE_LCD_BITMAP || HAVE_REMOTE_LCD */
108104109105 void (*putsxy)(int x, int y, const unsigned char *str);
110106 void (*puts)(int x, int y, const unsigned char *str);
···130126 bool (*backdrop_load)(const char *filename, char* backdrop_buffer);
131127 void (*backdrop_show)(char* backdrop_buffer);
132128#endif
133133-#if defined(HAVE_LCD_BITMAP)
134129 void (*set_framebuffer)(void *framebuffer);
135130#if defined(HAVE_LCD_COLOR)
136131 void (*gradient_fillrect)(int x, int y, int width, int height,
···138133 void (*gradient_fillrect_part)(int x, int y, int width, int height,
139134 unsigned start, unsigned end, int src_height, int row_skip);
140135#endif
141141-#endif
142142-#if defined(HAVE_LCD_BITMAP)
143136 void (*nine_segment_bmp)(const struct bitmap* bm, int x, int y,
144137 int width, int height);
145145-#endif
146138 void (*put_line)(int x, int y, struct line_desc *line, const char *fmt, ...);
147139};
148140149149-#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD)
150141/*
151142 * Clear only a given area of the screen
152143 * - screen : the screen structure
···155146 */
156147void screen_clear_area(struct screen * display, int xstart, int ystart,
157148 int width, int height);
158158-#endif
159149160150/*
161151 * exported screens array that should be used
···286286 signed char last_screen;
287287 int viewer_icon_count;
288288 int last_volume_change; /* tick the last volume change happened. skins use this */
289289-#ifdef HAVE_LCD_BITMAP
290289 int font_id[NB_SCREENS]; /* font id of the settings font for each screen */
291291-#endif
292290293291};
294292···494492 int peak_meter_max; /* range maximum */
495493496494 unsigned char wps_file[MAX_FILENAME+1]; /* last wps */
497497-#ifdef HAVE_LCD_BITMAP
498495 unsigned char sbs_file[MAX_FILENAME+1]; /* last statusbar skin */
499499-#endif
500496#ifdef HAVE_REMOTE_LCD
501497 unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */
502498 unsigned char rsbs_file[MAX_FILENAME+1]; /* last remote statusbar skin */
···514510 int remote_statusbar;
515511#endif
516512517517-#ifdef HAVE_LCD_BITMAP
518513 int scrollbar; /* SCROLLBAR_* enum values */
519514 int scrollbar_width;
520515···525520 int list_separator_height; /* -1=auto (== 1 currently), 0=disabled, X=height in pixels */
526521 int list_separator_color;
527522#endif
528528-#endif
529523 /* goto current song when exiting WPS */
530524 bool browse_current; /* 1=goto current song,
531525 0=goto previous location */
···621615 int contrast; /* lcd contrast */
622616#endif
623617624624-#ifdef HAVE_LCD_BITMAP
625618#ifdef HAVE_LCD_INVERT
626619 bool invert; /* invert display */
627620#endif
···640633 unsigned char remote_font_file[MAX_FILENAME+1]; /* last font */
641634#endif
642635 unsigned char kbd_file[MAX_FILENAME+1]; /* last keyboard */
643643-#endif /* HAVE_LCD_BITMAP */
644636 int backlight_timeout; /* backlight off timeout: -1=never,
645637 0=always, or time in seconds */
646638 bool caption_backlight; /* turn on backlight at end and start of track */
···748740 bool usb_skip_first_drive;
749741#endif
750742751751-#ifdef HAVE_LCD_BITMAP
752743 unsigned char ui_vp_config[64]; /* viewport string for the lists */
753744#ifdef HAVE_REMOTE_LCD
754745 unsigned char remote_ui_vp_config[64]; /* viewport string for the remote lists */
755755-#endif
756746#endif
757747758748 struct compressor_settings compressor_settings;
···5050static long lastbtn; /* Last valid button status */
5151static long last_read; /* Last button status, for debouncing/filtering */
5252static intptr_t button_data; /* data value from last message dequeued */
5353-#ifdef HAVE_LCD_BITMAP
5453static bool flipped; /* buttons can be flipped to match the LCD flip */
5555-#endif
5654#ifdef HAVE_BACKLIGHT
5755static bool filter_first_keypress;
5856#ifdef HAVE_REMOTE_LCD
···535533536534 reset_poweroff_timer();
537535538538-#ifdef HAVE_LCD_BITMAP
539536 flipped = false;
540540-#endif
541537#ifdef HAVE_BACKLIGHT
542538 filter_first_keypress = false;
543539#ifdef HAVE_REMOTE_LCD
···1717#define CONFIG_PLATFORM (PLATFORM_HOSTED)
1818#endif
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+22222323/* define this if you have a colour LCD */
2424#define HAVE_LCD_COLOR
+2-2
firmware/export/config/android.h
···12121313#define USB_NONE
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have a colour LCD */
1919#define HAVE_LCD_COLOR
+2-2
firmware/export/config/cowond2.h
···2424 explicitly if different */
2525#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO)
26262727-/* define this if you have a bitmap LCD display */
2828-#define HAVE_LCD_BITMAP
2727+2828+29293030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
+2-2
firmware/export/config/creativezen.h
···2727 explicitly if different */
2828#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29293030-/* define this if you have a bitmap LCD display */
3131-#define HAVE_LCD_BITMAP
3030+3131+3232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
3434
+2-2
firmware/export/config/creativezenmozaic.h
···2525 explicitly if different */
2626#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+3030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
3232
+2-2
firmware/export/config/creativezenv.h
···2525 explicitly if different */
2626#define INPUT_SRC_CAPS SRC_CAP_MIC
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+3030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
3232
+2-2
firmware/export/config/creativezenxfi.h
···2525 explicitly if different */
2626#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+3030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
3232
+2-2
firmware/export/config/creativezenxfi2.h
···2727 explicitly if different */
2828#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29293030-/* define this if you have a bitmap LCD display */
3131-#define HAVE_LCD_BITMAP
3030+3131+3232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
3434
+2-2
firmware/export/config/creativezenxfi3.h
···2727 explicitly if different */
2828#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
29293030-/* define this if you have a bitmap LCD display */
3131-#define HAVE_LCD_BITMAP
3030+3131+3232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
3434
+2-2
firmware/export/config/creativezenxfistyle.h
···2525 explicitly if different */
2626#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+3030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
3232
+2-2
firmware/export/config/creativezv.h
···4141/*define this if the ATA controller and method of USB access support LBA48 */
4242#define HAVE_LBA48
43434444-/* define this if you have a bitmap LCD display */
4545-#define HAVE_LCD_BITMAP
4444+4545+46464747/* define this if you have a colour LCD */
4848#define HAVE_LCD_COLOR
+2-2
firmware/export/config/gigabeatfx.h
···1515/*define this if the ATA controller and method of USB access support LBA48 */
1616#define HAVE_LBA48
17171818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you have a colour LCD */
2222#define HAVE_LCD_COLOR
+2-2
firmware/export/config/gigabeats.h
···2222/*define this if the ATA controller and method of USB access support LBA48 */
2323#define HAVE_LBA48
24242525-/* define this if you have a bitmap LCD display */
2626-#define HAVE_LCD_BITMAP
2525+2626+27272828/* define this if you have a colour LCD */
2929#define HAVE_LCD_COLOR
+2-2
firmware/export/config/gogearhdd1630.h
···2727#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2828 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
29293030-/* define this if you have a bitmap LCD display */
3131-#define HAVE_LCD_BITMAP
3030+3131+32323333/* define this if you have a colour LCD */
3434#define HAVE_LCD_COLOR
+2-2
firmware/export/config/gogearhdd6330.h
···2727#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2828 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
29293030-/* define this if you have a bitmap LCD display */
3131-#define HAVE_LCD_BITMAP
3030+3131+32323333/* define this if you have a colour LCD */
3434#define HAVE_LCD_COLOR
+2-2
firmware/export/config/gogearsa9200.h
···8899#define HW_SAMPR_CAPS (SAMPR_CAP_44)
10101111-/* define this if you have a bitmap LCD display */
1212-#define HAVE_LCD_BITMAP
1111+1212+13131414/* define this if you have a colour LCD */
1515#define HAVE_LCD_COLOR
+2-2
firmware/export/config/hifietma8.h
···1515#define HAVE_PCM1792_CODEC
16161717#define CODEC_SLAVE
1818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you can flip your LCD */
2222/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/hifietma8c.h
···1515#define HAVE_PCM1792_CODEC
16161717#define CODEC_SLAVE
1818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you can flip your LCD */
2222/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/hifietma9.h
···1515#define HAVE_DF1704_CODEC
16161717#define CODEC_SLAVE
1818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you can flip your LCD */
2222/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/hifietma9c.h
···1515#define HAVE_DF1704_CODEC
16161717#define CODEC_SLAVE
1818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you can flip your LCD */
2222/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/hifimanhm60x.h
···18181919#define HAVE_DUMMY_CODEC
2020#define CODEC_SLAVE
2121-/* define this if you have a bitmap LCD display */
2222-#define HAVE_LCD_BITMAP
2121+2222+23232424/* define this if you can flip your LCD */
2525/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/hifimanhm801.h
···15151616#define HAVE_DUMMY_CODEC
1717#define CODEC_SLAVE
1818-/* define this if you have a bitmap LCD display */
1919-#define HAVE_LCD_BITMAP
1818+1919+20202121/* define this if you can flip your LCD */
2222/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/iaudio7.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
+2-2
firmware/export/config/iaudiom3.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you want album art for this target */
3333#define HAVE_ALBUMART
+2-2
firmware/export/config/iaudiom5.h
···3030/* define the bitmask of recording sample rates */
3131#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
32323333-/* define this if you have a bitmap LCD display */
3434-#define HAVE_LCD_BITMAP
3333+3434+35353636/* define this if you want album art for this target */
3737#define HAVE_ALBUMART
+2-2
firmware/export/config/iaudiox5.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you can flip your LCD */
3333#define HAVE_LCD_FLIP
+2-2
firmware/export/config/ibassodx50.h
···33333434#define USB_NONE
35353636-/* define this if you have a bitmap LCD display */
3737-#define HAVE_LCD_BITMAP
3636+3737+38383939/* define this if you have a colour LCD */
4040#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ibassodx90.h
···33333434#define USB_NONE
35353636-/* define this if you have a bitmap LCD display */
3737-#define HAVE_LCD_BITMAP
3636+3737+38383939/* define this if you have a colour LCD */
4040#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ihifi760.h
···18181919#define HAVE_DUMMY_CODEC
2020#define CODEC_SLAVE
2121-/* define this if you have a bitmap LCD display */
2222-#define HAVE_LCD_BITMAP
2121+2222+23232424/* define this if you can flip your LCD */
2525/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/ihifi770.h
···1919#define HAVE_WM8740
2020#define CODEC_SLAVE
21212222-/* define this if you have a bitmap LCD display */
2323-#define HAVE_LCD_BITMAP
2222+2323+24242525/* define this if you can flip your LCD */
2626/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/ihifi770c.h
···1919#define HAVE_WM8740
2020#define CODEC_SLAVE
21212222-/* define this if you have a bitmap LCD display */
2323-#define HAVE_LCD_BITMAP
2222+2323+24242525/* define this if you can flip your LCD */
2626/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/ihifi800.h
···1919#define HAVE_ES9018
2020#define CODEC_SLAVE
21212222-/* define this if you have a bitmap LCD display */
2323-#define HAVE_LCD_BITMAP
2222+2323+24242525/* define this if you can flip your LCD */
2626/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/ihifi960.h
···18181919#define HAVE_DUMMY_CODEC
2020#define CODEC_SLAVE
2121-/* define this if you have a bitmap LCD display */
2222-#define HAVE_LCD_BITMAP
2121+2222+23232424/* define this if you can flip your LCD */
2525/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/ipod1g2g.h
···2626#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2727 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you want album art for this target */
3333#define HAVE_ALBUMART
+2-2
firmware/export/config/ipod3g.h
···2626#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2727 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you want album art for this target */
3333#define HAVE_ALBUMART
+2-2
firmware/export/config/ipod4g.h
···2828/* define the bitmask of recording sample rates */
2929#define REC_SAMPR_CAPS (SAMPR_CAP_44)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you want album art for this target */
3535#define HAVE_ALBUMART
+2-2
firmware/export/config/ipod6g.h
···3838 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
3939 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
40404141-/* define this if you have a bitmap LCD display */
4242-#define HAVE_LCD_BITMAP
4141+4242+43434444/* define this if you can flip your LCD */
4545//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/ipodcolor.h
···2828/* define the bitmask of recording sample rates */
2929#define REC_SAMPR_CAPS (SAMPR_CAP_44)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you have a colour LCD */
3535#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ipodmini1g.h
···2828#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2929 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you want album art for this target */
3535#define HAVE_ALBUMART
+2-2
firmware/export/config/ipodmini2g.h
···2828#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2929 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you want album art for this target */
3535#define HAVE_ALBUMART
+2-2
firmware/export/config/ipodnano1g.h
···2828/* define the bitmask of recording sample rates */
2929#define REC_SAMPR_CAPS (SAMPR_CAP_44)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you have a colour LCD */
3535#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ipodnano2g.h
···2626 | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
2727 | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you can flip your LCD */
3333//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/ipodvideo.h
···3030/* define the bitmask of recording sample rates */
3131#define REC_SAMPR_CAPS HW_SAMPR_CAPS
32323333-/* define this if you have a bitmap LCD display */
3434-#define HAVE_LCD_BITMAP
3333+3434+35353636/* define this if you have a colour LCD */
3737#define HAVE_LCD_COLOR
+2-2
firmware/export/config/iriverh10.h
···2626#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2727 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
+2-2
firmware/export/config/iriverh100.h
···1414/*define this if the ATA controller and method of USB access support LBA48 */
1515#define HAVE_LBA48
16161717-/* define this if you have a bitmap LCD display */
1818-#define HAVE_LCD_BITMAP
1717+1818+19192020/* define this if you want album art for this target */
2121#define HAVE_ALBUMART
+2-2
firmware/export/config/iriverh10_5gb.h
···2626#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2727 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
+2-2
firmware/export/config/iriverh120.h
···1414/*define this if the ATA controller and method of USB access support LBA48 */
1515#define HAVE_LBA48
16161717-/* define this if you have a bitmap LCD display */
1818-#define HAVE_LCD_BITMAP
1717+1818+19192020/* define this if you want album art for this target */
2121#define HAVE_ALBUMART
+2-2
firmware/export/config/iriverh300.h
···1414/*define this if the ATA controller and method of USB access support LBA48 */
1515#define HAVE_LBA48
16161717-/* define this if you have a bitmap LCD display */
1818-#define HAVE_LCD_BITMAP
1717+1818+19192020/* define this if you have a colour LCD */
2121#define HAVE_LCD_COLOR
+2-2
firmware/export/config/iriverifp7xx.h
···1212/* define this if you have recording possibility */
1313/*#define HAVE_RECORDING*/
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you would like tagcache to build on this target */
1919/* #define HAVE_TAGCACHE */
+2-2
firmware/export/config/logikdax.h
···2121#endif
222223232424-/* define this if you have a bitmap LCD display */
2525-#define HAVE_LCD_BITMAP
2424+2525+26262727/* define this if you can flip your LCD */
2828#define HAVE_LCD_FLIP
+2-2
firmware/export/config/lyreproto1.h
···3333#define CONFIG_STORAGE STORAGE_SD
3434#define HAVE_FLASH_STORAGE
35353636-/* define this if you have a bitmap LCD display */
3737-#define HAVE_LCD_BITMAP
3636+3737+38383939/* define this if you have a colour LCD */
4040#define HAVE_LCD_COLOR
+2-2
firmware/export/config/meizum3.h
···2020/* define the bitmask of recording sample rates */
2121#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
22222323-/* define this if you have a bitmap LCD display */
2424-#define HAVE_LCD_BITMAP
2323+2424+25252626/* define this if you can flip your LCD */
2727//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/meizum6sl.h
···2020/* define the bitmask of recording sample rates */
2121#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
22222323-/* define this if you have a bitmap LCD display */
2424-#define HAVE_LCD_BITMAP
2323+2424+25252626/* define this if you can flip your LCD */
2727//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/meizum6sp.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you can flip your LCD */
3333//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/mini2440.h
···5050/* #define HAVE_DISK_STORAGE */
51515252/* Display */
5353-/* define this if you have a bitmap LCD display */
5454-#define HAVE_LCD_BITMAP
5353+5454+5555/* define this if you have a colour LCD */
5656#define HAVE_LCD_COLOR
5757/* The LCD is assumed to be 3.5" TFT touch screen, others are possible */
+2-2
firmware/export/config/mpiohd200.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you want album art for this target */
3333#define HAVE_ALBUMART
+2-2
firmware/export/config/mpiohd300.h
···2626/* define the bitmask of recording sample rates */
2727#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you want album art for this target */
3333#define HAVE_ALBUMART
+2-2
firmware/export/config/mrobe100.h
···1212/*define this if the ATA controller and method of USB access support LBA48 */
1313#define HAVE_LBA48
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have access to the quickscreen */
1919#define HAVE_QUICKSCREEN
+2-2
firmware/export/config/mrobe500.h
···4141/* Define this to add support for ATA DMA */
4242//#define HAVE_ATA_DMA
43434444-/* define this if you have a bitmap LCD display */
4545-#define HAVE_LCD_BITMAP
4444+4545+46464747/* define this if you have a colour LCD */
4848#define HAVE_LCD_COLOR
+2-2
firmware/export/config/nokian8xx.h
···12121313#define USB_NONE
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have a colour LCD */
1919#define HAVE_LCD_COLOR
+2-2
firmware/export/config/nokian900.h
···12121313#define USB_NONE
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have a colour LCD */
1919#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ondavx747.h
···4040/* ChinaChip NAND FTL */
4141#define CONFIG_NAND NAND_CC
42424343-/* define this if you have a bitmap LCD display */
4444-#define HAVE_LCD_BITMAP
4343+4444+45454646/* define this if you have a colour LCD */
4747#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ondavx767.h
···4343#define HAVE_MULTIDRIVE
4444#define NUM_DRIVES 2
45454646-/* define this if you have a bitmap LCD display */
4747-#define HAVE_LCD_BITMAP
4646+4747+48484949/* define this if you have a colour LCD */
5050#define HAVE_LCD_COLOR
+2-2
firmware/export/config/ondavx777.h
···3434/* ChinaChip NAND FTL */
3535#define CONFIG_NAND NAND_CC
36363737-/* define this if you have a bitmap LCD display */
3838-#define HAVE_LCD_BITMAP
3737+3838+39394040/* define this if you have a colour LCD */
4141#define HAVE_LCD_COLOR
+2-2
firmware/export/config/pandora.h
···12121313#define USB_NONE
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have a colour LCD */
1919#define HAVE_LCD_COLOR
+2-2
firmware/export/config/rk27generic.h
···2525 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
2626 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+30303131/* define this if you can flip your LCD */
3232/* #define HAVE_LCD_FLIP */
+2-2
firmware/export/config/samsungyh820.h
···7676/* put the lcd frame buffer in IRAM */
7777/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
78787979-/* define this if you have a bitmap LCD display */
8080-#define HAVE_LCD_BITMAP
7979+8080+81818282/* define this if you have a colour LCD */
8383#define HAVE_LCD_COLOR
+2-2
firmware/export/config/samsungyh920.h
···7272/* put the lcd frame buffer in IRAM */
7373/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
74747575-/* define this if you have a bitmap LCD display */
7676-#define HAVE_LCD_BITMAP
7575+7676+77777878/* define this if you want album art for this target */
7979#define HAVE_ALBUMART
+2-2
firmware/export/config/samsungyh925.h
···6666/* put the lcd frame buffer in IRAM */
6767/* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */
68686969-/* define this if you have a bitmap LCD display */
7070-#define HAVE_LCD_BITMAP
6969+7070+71717272/* define this if you have a colour LCD */
7373#define HAVE_LCD_COLOR
+2-2
firmware/export/config/samsungypr0.h
···14141515#define MODEL_NAME "Samsung YP-R0"
16161717-/* define this if you have a bitmap LCD display */
1818-#define HAVE_LCD_BITMAP
1717+1818+19192020/* define this if you have a colour LCD */
2121#define HAVE_LCD_COLOR
+2-2
firmware/export/config/samsungypr1.h
···14141515#define MODEL_NAME "Samsung YP-R1"
16161717-/* define this if you have a bitmap LCD display */
1818-#define HAVE_LCD_BITMAP
1717+1818+19192020/* define this if you have a colour LCD */
2121#define HAVE_LCD_COLOR
+2-2
firmware/export/config/samsungyps3.h
···2020/* define the bitmask of recording sample rates */
2121#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
22222323-/* define this if you have a bitmap LCD display */
2424-#define HAVE_LCD_BITMAP
2323+2424+25252626/* define this if you can flip your LCD */
2727//#define HAVE_LCD_FLIP
+2-2
firmware/export/config/samsungypz5.h
···2828#define HAVE_FMRADIO_IN
2929#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+3333/* define this if you have a colour LCD */
3434#define HAVE_LCD_COLOR
3535
+2-2
firmware/export/config/sansac100.h
···1010/* define hardware samples rate caps mask */
1111#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
12121313-/* define this if you have a bitmap LCD display */
1414-#define HAVE_LCD_BITMAP
1313+1414+15151616/* define this if you have a colour LCD */
1717#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansac200.h
···2424 explicitly if different */
2525#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26262727-/* define this if you have a bitmap LCD display */
2828-#define HAVE_LCD_BITMAP
2727+2828+29293030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansac200v2.h
···2626 explicitly if different */
2727#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you have a colour LCD */
3333#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansaclip.h
···2626 explicitly if different */
2727#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
28282929-/* define this if you have a bitmap LCD display */
3030-#define HAVE_LCD_BITMAP
2929+3030+31313232/* define this if you have a light associated with the buttons */
3333#define HAVE_BUTTON_LIGHT
+2-2
firmware/export/config/sansaclipplus.h
···3737 explicitly if different */
3838#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
39394040-/* define this if you have a bitmap LCD display */
4141-#define HAVE_LCD_BITMAP
4040+4141+42424343/* define this if you have access to the quickscreen */
4444#define HAVE_QUICKSCREEN
+2-2
firmware/export/config/sansaclipv2.h
···2828 explicitly if different */
2929#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you have a light associated with the buttons */
3535#define HAVE_BUTTON_LIGHT
+2-2
firmware/export/config/sansaclipzip.h
···3838 explicitly if different */
3939#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
40404141-/* define this if you have a bitmap LCD display */
4242-#define HAVE_LCD_BITMAP
4141+4242+4343/* define this if you have a colour LCD */
4444#define HAVE_LCD_COLOR
4545
+2-2
firmware/export/config/sansaconnect.h
···4242#define HAVE_HOTSWAP
4343#define HAVE_HOTSWAP_STORAGE_AS_MAIN
44444545-/* define this if you have a bitmap LCD display */
4646-#define HAVE_LCD_BITMAP
4545+4646+47474848/* define this if you have a colour LCD */
4949#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansae200.h
···2424 explicitly if different */
2525#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26262727-/* define this if you have a bitmap LCD display */
2828-#define HAVE_LCD_BITMAP
2727+2828+29293030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansae200v2.h
···2424 explicitly if different */
2525#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
26262727-/* define this if you have a bitmap LCD display */
2828-#define HAVE_LCD_BITMAP
2727+2828+29293030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sansafuze.h
···3434 explicitly if different */
3535#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
36363737-/* define this if you have a bitmap LCD display */
3838-#define HAVE_LCD_BITMAP
3737+3838+3939/* define this if you have a colour LCD */
4040#define HAVE_LCD_COLOR
4141
+2-2
firmware/export/config/sansafuzeplus.h
···2929 explicitly if different */
3030#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
31313232-/* define this if you have a bitmap LCD display */
3333-#define HAVE_LCD_BITMAP
3232+3333+3434/* define this if you have a colour LCD */
3535#define HAVE_LCD_COLOR
3636#define HAVE_LCD_FLIP
+2-2
firmware/export/config/sansafuzev2.h
···3434 explicitly if different */
3535#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
36363737-/* define this if you have a bitmap LCD display */
3838-#define HAVE_LCD_BITMAP
3737+3838+3939/* define this if you have a colour LCD */
4040#define HAVE_LCD_COLOR
4141
+2-2
firmware/export/config/sansam200.h
···1717 explicitly if different */
1818//#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF)
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+22222323/* define this if you can flip your LCD */
2424#define HAVE_LCD_FLIP
+2-2
firmware/export/config/sansam200v4.h
···2828 explicitly if different */
2929#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
30303131-/* define this if you have a bitmap LCD display */
3232-#define HAVE_LCD_BITMAP
3131+3232+33333434/* define this if you can flip your LCD */
3535#define HAVE_LCD_FLIP
+2-2
firmware/export/config/sansaview.h
···1919 explicitly if different */
2020#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO)
21212222-/* define this if you have a bitmap LCD display */
2323-#define HAVE_LCD_BITMAP
2222+2323+24242525/* define this if you have a colour LCD */
2626#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sdlapp.h
···12121313#define USB_NONE
14141515-/* define this if you have a bitmap LCD display */
1616-#define HAVE_LCD_BITMAP
1515+1616+17171818/* define this if you have a colour LCD */
1919#define HAVE_LCD_COLOR
+2-2
firmware/export/config/sonynwze360.h
···1717 explicitly if different */
1818#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+2222/* define this if you have a colour LCD */
2323#define HAVE_LCD_COLOR
2424
+2-2
firmware/export/config/sonynwze370.h
···1717 explicitly if different */
1818#define INPUT_SRC_CAPS SRC_CAP_FMRADIO
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+2222/* define this if you have a colour LCD */
2323#define HAVE_LCD_COLOR
2424
+2-2
firmware/export/config/sonynwzlinux.h
···66#define CONFIG_PLATFORM (PLATFORM_HOSTED)
77#endif
8899-/* define this if you have a bitmap LCD display */
1010-#define HAVE_LCD_BITMAP
99+1010+11111212/* define this if you have a colour LCD */
1313#define HAVE_LCD_COLOR
+2-2
firmware/export/config/tatungtpj1022.h
···2424#define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
2525 SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */
26262727-/* define this if you have a bitmap LCD display */
2828-#define HAVE_LCD_BITMAP
2727+2828+29293030/* define this if you have a colour LCD */
3131#define HAVE_LCD_COLOR
+2-2
firmware/export/config/vibe500.h
···2525/* define the bitmask of recording sample rates */
2626#define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11)
27272828-/* define this if you have a bitmap LCD display */
2929-#define HAVE_LCD_BITMAP
2828+2929+30303131/* define this if you can flip your LCD */
3232#define HAVE_LCD_FLIP
+2-2
firmware/export/config/xduoox20.h
···1717#define CONFIG_PLATFORM (PLATFORM_HOSTED)
1818#endif
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+22222323/* define this if you have a colour LCD */
2424#define HAVE_LCD_COLOR
+2-2
firmware/export/config/xduoox3.h
···1717/* ChinaChip NAND FTL */
1818#define CONFIG_NAND NAND_CC
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+22222323/* define this if you have access to the quickscreen */
2424#define HAVE_QUICKSCREEN
+2-2
firmware/export/config/xduoox3ii.h
···1717#define CONFIG_PLATFORM (PLATFORM_HOSTED)
1818#endif
19192020-/* define this if you have a bitmap LCD display */
2121-#define HAVE_LCD_BITMAP
2020+2121+22222323/* define this if you have a colour LCD */
2424#define HAVE_LCD_COLOR
+2-2
firmware/export/config/zenvisionm30gb.h
···4141/*define this if the ATA controller and method of USB access support LBA48 */
4242#define HAVE_LBA48
43434444-/* define this if you have a bitmap LCD display */
4545-#define HAVE_LCD_BITMAP
4444+4545+46464747/* define this if you have a colour LCD */
4848#define HAVE_LCD_COLOR
+2-2
firmware/export/config/zenvisionm60gb.h
···4141/*define this if the ATA controller and method of USB access support LBA48 */
4242#define HAVE_LBA48
43434444-/* define this if you have a bitmap LCD display */
4545-#define HAVE_LCD_BITMAP
4444+4545+46464747/* define this if you have a colour LCD */
4848#define HAVE_LCD_COLOR
-9
firmware/export/font.h
···3030 */
3131#include "config.h"
32323333-#if defined(HAVE_LCD_BITMAP) || (CONFIG_PLATFORM & PLATFORM_HOSTED)
3433#ifndef __PCTOOL__
3534#include "font_cache.h"
3635#include "sysfont.h"
3736#endif
3838-39374038/*
4139 * Fonts are specified by number, and used for display
···138136int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber);
139137int font_get_width(struct font* ft, unsigned short ch);
140138const unsigned char * font_get_bits(struct font* ft, unsigned short ch);
141141-142142-#else /* HAVE_LCD_BITMAP */
143143-144144-#define font_init()
145145-#define font_load(x)
146146-147147-#endif
148139149140#endif
-11
firmware/export/lcd.h
···4040 int y;
4141 int width;
4242 int height;
4343-#ifdef HAVE_LCD_BITMAP
4443 int flags;
4544 int font;
4645 int drawmode;
4746 /* needed for even for mono displays to support greylib */
4847 unsigned fg_pattern;
4948 unsigned bg_pattern;
5050-#endif
5149};
52505351/* Frame buffer stride
···114112#define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \
115113 (h)):STRIDE_REMOTE((w),(h)))
116114117117-#ifdef HAVE_LCD_BITMAP
118115#if LCD_DEPTH <=8
119116#if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \
120117 || (LCD_PIXELFORMAT == HORIZONTAL_INTERLEAVED)
···144141#endif
145142#define FB_DATA_SZ 4
146143#endif /* LCD_DEPTH */
147147-#endif
148144149145#if defined(HAVE_LCD_MODES)
150146void lcd_set_mode(int mode);
···193189 void (*scroll_func)(struct scrollinfo *),
194190 void *data, int x_offset);
195191196196-#ifdef HAVE_LCD_BITMAP
197197-198192/* performance function */
199193#if defined(HAVE_LCD_COLOR)
200194#if MEMORYSIZE > 2
···221215/* update a fraction of the screen */
222216extern void lcd_remote_update_rect(int x, int y, int width, int height);
223217#endif /* HAVE_REMOTE_LCD */
224224-#endif /* HAVE_LCD_BITMAP */
225218226219/* Bitmap formats */
227220enum
···248241#if LCD_DEPTH >= 8
249242typedef void lcd_fastpixelfunc_type(fb_data *address);
250243#endif
251251-252252-#ifdef HAVE_LCD_BITMAP
253244254245#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && \
255246 LCD_REMOTE_DEPTH > 1
···592583#else
593584extern int lcd_get_dpi(void);
594585#endif /* LCD_DPI */
595595-596596-#endif /* HAVE_LCD_BITMAP */
597586598587#endif /* __LCD_H__ */
+1-4
firmware/export/screendump.h
···24242525#include "config.h"
26262727-/* Make BMP colour map entries from R, G, B triples, without and with blending.
2828- * Not within HAVE_LCD_BITMAP because it is also used for the Player sim */
2727+/* Make BMP colour map entries from R, G, B triples, without and with blending. */
2928#define RED_CMP(c) (((c) >> 16) & 0xff)
3029#define GREEN_CMP(c) (((c) >> 8) & 0xff)
3130#define BLUE_CMP(c) ((c) & 0xff)
···6362/* Save a .BMP file containing the current screen contents. */
6463void screen_dump(void);
65646666-#ifdef HAVE_LCD_BITMAP
6765void screen_dump_set_hook(void (*hook)(int fd));
6868-#endif
69667067#ifdef HAVE_REMOTE_LCD
7168/* Save a .BMP file containing the current remote screen contents. */
-10
firmware/export/scroll_engine.h
···5858 * larger than the normal linebuffer since it holds the line a second
5959 * time (+3 spaces) for non-bidir scrolling */
6060#define SCROLL_SPACING 3
6161-#ifdef HAVE_LCD_BITMAP
6261#define SCROLL_LINE_SIZE (MAX_PATH + SCROLL_SPACING + 3*LCD_WIDTH/2 + 2)
6363-#else
6464-#define SCROLL_LINE_SIZE (MAX_PATH + SCROLL_SPACING + 3*LCD_WIDTH + 2)
6565-#endif
66626763struct scrollinfo
6864{
···9591 long ticks; /* # of ticks between updates*/
9692 long delay; /* ticks delay before start */
9793 int bidir_limit; /* percent */
9898-#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD)
9994 int step; /* pixels per scroll step */
100100-#endif
10195#if defined(HAVE_REMOTE_LCD)
10296 long last_scroll;
10397#endif
10498};
10599106100/** main lcd **/
107107-#ifdef HAVE_LCD_BITMAP
108101#define LCD_SCROLLABLE_LINES ((LCD_HEIGHT+4)/5 < 32 ? (LCD_HEIGHT+4)/5 : 32)
109109-#else
110110-#define LCD_SCROLLABLE_LINES LCD_HEIGHT * 2
111111-#endif
112102113103extern struct scroll_screen_info lcd_scroll_info;
114104
-2
firmware/export/usb.h
···107107/* Messages from usb_tick and thread states */
108108enum
109109{
110110-#ifdef HAVE_LCD_BITMAP
111110 USB_SCREENDUMP = -1, /* State */
112112-#endif
113111 USB_EXTRACTED = 0, /* Event+State */
114112 USB_INSERTED, /* Event+State */
115113 USB_POWERED, /* State - transitional indicator if no host */
-19
firmware/include/rbunicode.h
···3333#define MASK 0xC0 /* 11000000 */
3434#define COMP 0x80 /* 10x */
35353636-#ifdef HAVE_LCD_BITMAP
3737-3836enum codepages {
3937 ISO_8859_1 = 0, /* Latin1 */
4038 ISO_8859_7, /* Greek */
···5452 NUM_CODEPAGES,
5553 INIT_CODEPAGE = ISO_8859_1,
5654};
5757-5858-#else /* !HAVE_LCD_BITMAP, reduced support */
5959-6060-enum codepages {
6161- ISO_8859_1 = 0, /* Latin1 */
6262- ISO_8859_7, /* Greek */
6363- WIN_1251, /* Cyrillic */
6464- ISO_8859_9, /* Turkish */
6565- ISO_8859_2, /* Latin Extended */
6666- WIN_1250, /* Central European */
6767- WIN_1252, /* Western European */
6868- UTF_8, /* Unicode */
6969- NUM_CODEPAGES,
7070- INIT_CODEPAGE = ISO_8859_1,
7171-};
7272-7373-#endif
74557556/* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */
7657unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8);
···4040#include "fmradio.h"
4141#endif
4242#include "sound.h"
4343-#ifdef HAVE_LCD_BITMAP
4443#include "font.h"
4545-#endif
4644#include "logf.h"
4745#ifdef HAVE_REMOTE_LCD
4846#include "lcd-remote.h"
···754752 audio_stop();
755753756754 if (battery_level_safe()) { /* do not save on critical battery */
757757-#ifdef HAVE_LCD_BITMAP
758755 font_unload_all();
759759-#endif
760756761757/* Commit pending writes if needed. Even though we don't do write caching,
762758 things like flash translation layers may need this to commit scattered