From 658026e6267277b27d297c481728f74d160a8481 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 17 Jul 2020 10:31:31 -0400 Subject: [PATCH] [4/4] Remove HAVE_LCD_BITMAP, as it's now the only choice. Note: I left behind lcd_bitmap in features.txt, because removing it would require considerable work in the manual and the translations. Change-Id: Ia8ca7761f610d9332a0d22a7d189775fb15ec88a --- apps/SOURCES | 9 +-- apps/action.c | 6 +- apps/bitmaps/mono/SOURCES | 2 - apps/bitmaps/native/SOURCES | 4 - apps/bitmaps/remote_mono/SOURCES | 2 - apps/bookmark.c | 6 -- apps/cuesheet.c | 4 +- apps/cuesheet.h | 2 - apps/debug_menu.c | 22 +----- apps/features.txt | 2 - apps/filetree.c | 12 +-- apps/filetypes.c | 12 --- apps/gui/bitmap/list-skinned.c | 6 +- apps/gui/icon.c | 4 - apps/gui/icon.h | 4 - apps/gui/line.c | 2 - apps/gui/list.c | 44 ----------- apps/gui/list.h | 8 +- apps/gui/scrollbar.c | 3 - apps/gui/scrollbar.h | 3 - apps/gui/skin_engine/skin_display.c | 19 +---- apps/gui/skin_engine/skin_display.h | 2 - apps/gui/skin_engine/skin_engine.c | 10 --- apps/gui/skin_engine/skin_engine.h | 5 +- apps/gui/skin_engine/skin_parser.c | 53 +------------- apps/gui/skin_engine/skin_render.c | 38 ++-------- apps/gui/skin_engine/skin_tokens.c | 6 -- apps/gui/skin_engine/wps_internals.h | 14 ---- apps/gui/splash.c | 22 +----- apps/gui/statusbar-skinned.h | 11 --- apps/gui/statusbar.c | 12 --- apps/gui/usb_screen.c | 27 +------ apps/gui/viewport.c | 30 +------- apps/gui/viewport.h | 3 - apps/gui/wps.c | 7 -- apps/gui/yesno.c | 2 - apps/keyboard.h | 2 - apps/lang/SOURCES | 2 - apps/language.c | 2 - apps/logfdisp.c | 6 +- apps/main.c | 17 ----- apps/menu.c | 11 +-- apps/menus/display_menu.c | 20 ----- apps/menus/exported_menus.h | 2 - apps/menus/recording_menu.c | 4 - apps/menus/settings_menu.c | 8 -- apps/menus/theme_menu.c | 16 ---- apps/misc.c | 19 +---- apps/misc.h | 2 - apps/onplay.c | 6 -- apps/playback.c | 2 - apps/playlist.c | 2 - apps/plugin.c | 11 +-- apps/plugin.h | 12 +-- apps/plugins/2048.c | 2 - apps/plugins/SOURCES | 12 +-- apps/plugins/SOURCES.app_build | 4 - apps/plugins/SUBDIRS | 5 -- apps/plugins/SUBDIRS.app_build | 3 - apps/plugins/battery_bench.c | 17 +---- apps/plugins/bitmaps/mono/SOURCES | 3 - apps/plugins/bitmaps/native/SOURCES | 4 - apps/plugins/chessclock.c | 8 -- apps/plugins/cube.c | 34 --------- apps/plugins/disktidy.c | 2 - apps/plugins/flipit.c | 7 +- apps/plugins/greyscale.c | 4 +- apps/plugins/jackpot.c | 2 - apps/plugins/lib/SOURCES | 8 +- apps/plugins/lib/checkbox.h | 4 - apps/plugins/lib/display_text.c | 8 -- apps/plugins/lib/grey.h | 4 +- apps/plugins/lib/highscore.c | 35 --------- apps/plugins/lib/mylcd.h | 28 +------ apps/plugins/lib/pluginlib_bmp.h | 2 +- apps/plugins/lib/simple_viewer.c | 20 ----- apps/plugins/lib/xlcd.h | 3 - apps/plugins/lib/xlcd_core.c | 3 - apps/plugins/lib/xlcd_draw.c | 3 - apps/plugins/logo.c | 30 -------- apps/plugins/lrcplayer.c | 73 +------------------ apps/plugins/lua/rocklib_img.c | 7 -- apps/plugins/lua/rocklib_img.h | 2 - apps/plugins/metronome.c | 51 ------------- apps/plugins/mosaique.c | 7 -- apps/plugins/otp.c | 2 - apps/plugins/pegbox.c | 2 - apps/plugins/properties.c | 4 - apps/plugins/rockblox.c | 33 +-------- apps/plugins/search.c | 4 - apps/plugins/searchengine/searchengine.h | 8 -- apps/plugins/shortcuts/shortcuts_view.c | 4 - apps/plugins/snow.c | 16 ---- apps/plugins/stats.c | 7 -- apps/plugins/stopwatch.c | 8 -- apps/plugins/test_mem.c | 4 +- apps/plugins/test_viewports.c | 62 ---------------- apps/plugins/text_viewer/text_viewer.c | 2 - apps/plugins/text_viewer/tv_action.c | 4 - apps/plugins/text_viewer/tv_bookmark.c | 4 - apps/plugins/text_viewer/tv_display.c | 73 ------------------- apps/plugins/text_viewer/tv_menu.c | 18 ----- apps/plugins/text_viewer/tv_preferences.c | 10 --- apps/plugins/text_viewer/tv_preferences.h | 3 +- apps/plugins/text_viewer/tv_settings.c | 4 - apps/plugins/text_viewer/tv_text_processor.c | 11 +-- apps/plugins/theme_remove.c | 43 +---------- apps/plugins/wav2wv.c | 4 - apps/radio/presets.c | 2 - apps/recorder/icons.h | 3 - apps/screen_access.c | 44 ----------- apps/screen_access.h | 10 --- apps/screens.c | 4 +- apps/settings.c | 21 ------ apps/settings.h | 10 --- apps/settings_list.c | 42 ----------- apps/tree.c | 16 +--- docs/PLUGIN_API | 59 +++++---------- firmware/SOURCES | 4 - firmware/common/unicode.c | 25 ------- firmware/drivers/button.c | 4 - firmware/drivers/lcd-scroll.c | 13 ---- firmware/export/button.h | 2 - firmware/export/config.h | 2 +- firmware/export/config/agptekrocker.h | 4 +- firmware/export/config/android.h | 4 +- firmware/export/config/cowond2.h | 4 +- firmware/export/config/creativezen.h | 4 +- firmware/export/config/creativezenmozaic.h | 4 +- firmware/export/config/creativezenv.h | 4 +- firmware/export/config/creativezenxfi.h | 4 +- firmware/export/config/creativezenxfi2.h | 4 +- firmware/export/config/creativezenxfi3.h | 4 +- firmware/export/config/creativezenxfistyle.h | 4 +- firmware/export/config/creativezv.h | 4 +- firmware/export/config/gigabeatfx.h | 4 +- firmware/export/config/gigabeats.h | 4 +- firmware/export/config/gogearhdd1630.h | 4 +- firmware/export/config/gogearhdd6330.h | 4 +- firmware/export/config/gogearsa9200.h | 4 +- firmware/export/config/hifietma8.h | 4 +- firmware/export/config/hifietma8c.h | 4 +- firmware/export/config/hifietma9.h | 4 +- firmware/export/config/hifietma9c.h | 4 +- firmware/export/config/hifimanhm60x.h | 4 +- firmware/export/config/hifimanhm801.h | 4 +- firmware/export/config/iaudio7.h | 4 +- firmware/export/config/iaudiom3.h | 4 +- firmware/export/config/iaudiom5.h | 4 +- firmware/export/config/iaudiox5.h | 4 +- firmware/export/config/ibassodx50.h | 4 +- firmware/export/config/ibassodx90.h | 4 +- firmware/export/config/ihifi760.h | 4 +- firmware/export/config/ihifi770.h | 4 +- firmware/export/config/ihifi770c.h | 4 +- firmware/export/config/ihifi800.h | 4 +- firmware/export/config/ihifi960.h | 4 +- firmware/export/config/ipod1g2g.h | 4 +- firmware/export/config/ipod3g.h | 4 +- firmware/export/config/ipod4g.h | 4 +- firmware/export/config/ipod6g.h | 4 +- firmware/export/config/ipodcolor.h | 4 +- firmware/export/config/ipodmini1g.h | 4 +- firmware/export/config/ipodmini2g.h | 4 +- firmware/export/config/ipodnano1g.h | 4 +- firmware/export/config/ipodnano2g.h | 4 +- firmware/export/config/ipodvideo.h | 4 +- firmware/export/config/iriverh10.h | 4 +- firmware/export/config/iriverh100.h | 4 +- firmware/export/config/iriverh10_5gb.h | 4 +- firmware/export/config/iriverh120.h | 4 +- firmware/export/config/iriverh300.h | 4 +- firmware/export/config/iriverifp7xx.h | 4 +- firmware/export/config/logikdax.h | 4 +- firmware/export/config/lyreproto1.h | 4 +- firmware/export/config/meizum3.h | 4 +- firmware/export/config/meizum6sl.h | 4 +- firmware/export/config/meizum6sp.h | 4 +- firmware/export/config/mini2440.h | 4 +- firmware/export/config/mpiohd200.h | 4 +- firmware/export/config/mpiohd300.h | 4 +- firmware/export/config/mrobe100.h | 4 +- firmware/export/config/mrobe500.h | 4 +- firmware/export/config/nokian8xx.h | 4 +- firmware/export/config/nokian900.h | 4 +- firmware/export/config/ondavx747.h | 4 +- firmware/export/config/ondavx767.h | 4 +- firmware/export/config/ondavx777.h | 4 +- firmware/export/config/pandora.h | 4 +- firmware/export/config/rk27generic.h | 4 +- firmware/export/config/samsungyh820.h | 4 +- firmware/export/config/samsungyh920.h | 4 +- firmware/export/config/samsungyh925.h | 4 +- firmware/export/config/samsungypr0.h | 4 +- firmware/export/config/samsungypr1.h | 4 +- firmware/export/config/samsungyps3.h | 4 +- firmware/export/config/samsungypz5.h | 4 +- firmware/export/config/sansac100.h | 4 +- firmware/export/config/sansac200.h | 4 +- firmware/export/config/sansac200v2.h | 4 +- firmware/export/config/sansaclip.h | 4 +- firmware/export/config/sansaclipplus.h | 4 +- firmware/export/config/sansaclipv2.h | 4 +- firmware/export/config/sansaclipzip.h | 4 +- firmware/export/config/sansaconnect.h | 4 +- firmware/export/config/sansae200.h | 4 +- firmware/export/config/sansae200v2.h | 4 +- firmware/export/config/sansafuze.h | 4 +- firmware/export/config/sansafuzeplus.h | 4 +- firmware/export/config/sansafuzev2.h | 4 +- firmware/export/config/sansam200.h | 4 +- firmware/export/config/sansam200v4.h | 4 +- firmware/export/config/sansaview.h | 4 +- firmware/export/config/sdlapp.h | 4 +- firmware/export/config/sonynwze360.h | 4 +- firmware/export/config/sonynwze370.h | 4 +- firmware/export/config/sonynwzlinux.h | 4 +- firmware/export/config/tatungtpj1022.h | 4 +- firmware/export/config/vibe500.h | 4 +- firmware/export/config/xduoox20.h | 4 +- firmware/export/config/xduoox3.h | 4 +- firmware/export/config/xduoox3ii.h | 4 +- firmware/export/config/zenvisionm30gb.h | 4 +- firmware/export/config/zenvisionm60gb.h | 4 +- firmware/export/font.h | 9 --- firmware/export/lcd.h | 11 --- firmware/export/screendump.h | 5 +- firmware/export/scroll_engine.h | 10 --- firmware/export/usb.h | 2 - firmware/include/rbunicode.h | 19 ----- firmware/panic.c | 4 - firmware/powermgmt.c | 4 - firmware/target/hosted/sdl/system-sdl.c | 2 - .../mips/ingenic_jz47xx/system-jz4740.c | 3 +- firmware/usb.c | 6 -- lib/rbcodec/metadata/smaf.c | 6 -- tools/buildzip.pl | 2 - tools/checkwps/SOURCES | 2 - tools/checkwps/checkwps.c | 8 +- tools/convbdf.c | 6 +- 240 files changed, 288 insertions(+), 1759 deletions(-) diff --git a/apps/SOURCES b/apps/SOURCES index d7cec53506..5335258f70 100644 --- a/apps/SOURCES +++ b/apps/SOURCES @@ -71,15 +71,11 @@ iap/iap-lingo7.c #endif #endif screen_access.c -#ifdef HAVE_LCD_BITMAP gui/icon.c -#endif gui/list.c gui/line.c -#ifdef HAVE_LCD_BITMAP gui/bitmap/list.c gui/bitmap/list-skinned.c -#endif gui/option_select.c #ifdef HAVE_PITCHCONTROL gui/pitchscreen.c @@ -96,9 +92,7 @@ gui/wps.c gui/scrollbar.c gui/splash.c gui/statusbar.c -#ifdef HAVE_LCD_BITMAP gui/statusbar-skinned.c -#endif #if (CONFIG_PLATFORM&PLATFORM_ANDROID) hosted/android/yesno.c hosted/android/notification.c @@ -121,7 +115,6 @@ gui/skin_engine/skin_touchsupport.c gui/backdrop.c #endif -#ifdef HAVE_LCD_BITMAP recorder/bmp.c recorder/icons.c #if (CONFIG_PLATFORM&PLATFORM_ANDROID) @@ -145,7 +138,7 @@ recorder/albumart.c #ifdef HAVE_LCD_COLOR gui/color_picker.c #endif -#endif + #ifdef HAVE_RECORDING recorder/recording.c #endif diff --git a/apps/action.c b/apps/action.c index 2aee56ee04..0c55227aac 100644 --- a/apps/action.c +++ b/apps/action.c @@ -26,7 +26,7 @@ #include "config.h" #include "lang.h" -#if defined(HAVE_LCD_BITMAP) && !defined(BOOTLOADER) +#if !defined(BOOTLOADER) #include "language.h" #endif @@ -421,7 +421,7 @@ static inline bool get_action_touchscreen(action_last_t *last, action_cur_t *cur static inline void button_flip_horizontally(int context, int *button) { -#if !defined(HAVE_LCD_BITMAP) || defined(BOOTLOADER) +#if defined(BOOTLOADER) (void) context; (void) *button; return; @@ -473,7 +473,7 @@ static inline void button_flip_horizontally(int context, int *button) #endif /* !SIMULATOR */ *button = newbutton; -#endif /* !HAVE_LCD_BITMAP | BOOTLOADER */ +#endif /* !BOOTLOADER */ } /* button_flip_horizontally */ /********************************************************************** diff --git a/apps/bitmaps/mono/SOURCES b/apps/bitmaps/mono/SOURCES index c0f72c023a..571a5a23a5 100644 --- a/apps/bitmaps/mono/SOURCES +++ b/apps/bitmaps/mono/SOURCES @@ -1,6 +1,4 @@ -#ifdef HAVE_LCD_BITMAP default_icons.bmp -#endif #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) osx_dummy.bmp diff --git a/apps/bitmaps/native/SOURCES b/apps/bitmaps/native/SOURCES index f74f289214..8f42607a0c 100644 --- a/apps/bitmaps/native/SOURCES +++ b/apps/bitmaps/native/SOURCES @@ -1,5 +1,3 @@ -#ifdef HAVE_LCD_BITMAP - /* Rockbox logo */ #if (LCD_DEPTH == 1) #if (LCD_WIDTH == 160) @@ -81,5 +79,3 @@ usblogo.104x27x1.bmp #endif #endif /* BOOTLOADER */ - -#endif /* HAVE_LCD_BITMAP */ diff --git a/apps/bitmaps/remote_mono/SOURCES b/apps/bitmaps/remote_mono/SOURCES index 41d85fccff..1c46288170 100644 --- a/apps/bitmaps/remote_mono/SOURCES +++ b/apps/bitmaps/remote_mono/SOURCES @@ -1,6 +1,4 @@ -#ifdef HAVE_LCD_BITMAP remote_default_icons.bmp -#endif #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) osx_remote_dummy.bmp diff --git a/apps/bookmark.c b/apps/bookmark.c index 22dfad6cce..07751c2d4c 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -198,14 +198,8 @@ bool bookmark_autobookmark(bool prompt_ok) case BOOKMARK_RECENT_ONLY_YES: return write_bookmark(false, bookmark); } -#ifdef HAVE_LCD_BITMAP const char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY)}; const struct text_message message={lines, 1}; -#else - const char *lines[]={ID2P(LANG_AUTO_BOOKMARK_QUERY), - str(LANG_CONFIRM_WITH_BUTTON)}; - const struct text_message message={lines, 2}; -#endif if(prompt_ok && gui_syncyesno_run(&message, NULL, NULL)==YESNO_YES) { diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 39152185e5..a9180a70d4 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -482,7 +482,6 @@ bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_ } -#ifdef HAVE_LCD_BITMAP static inline void draw_veritcal_line_mark(struct screen * screen, int x, int y, int h) { @@ -498,7 +497,7 @@ void cue_draw_markers(struct screen *screen, struct cuesheet *cue, { int i,xi; unsigned long tracklen_seconds = tracklen/1000; /* duration in seconds */ - + for (i=1; i < cue->track_count; i++) { /* Convert seconds prior to multiplication to avoid overflow. */ @@ -506,7 +505,6 @@ void cue_draw_markers(struct screen *screen, struct cuesheet *cue, draw_veritcal_line_mark(screen, xi, y, h); } } -#endif bool cuesheet_subtrack_changed(struct mp3entry *id3) { diff --git a/apps/cuesheet.h b/apps/cuesheet.h index 0b9503a9bb..6885d21ef0 100644 --- a/apps/cuesheet.h +++ b/apps/cuesheet.h @@ -79,12 +79,10 @@ int cue_find_current_track(struct cuesheet *cue, unsigned long curpos); /* skip to next track in the cuesheet towards "direction" (which is 1 or -1) */ bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos); -#ifdef HAVE_LCD_BITMAP /* draw track markers on the progressbar */ void cue_draw_markers(struct screen *screen, struct cuesheet *cue, unsigned long tracklen, int x, int y, int w, int h); -#endif /* check if the subtrack has changed */ bool cuesheet_subtrack_changed(struct mp3entry *id3); diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 92451f284c..e75fce6d32 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -80,11 +80,9 @@ #include "radio.h" #endif -#ifdef HAVE_LCD_BITMAP #include "scrollbar.h" #include "peakmeter.h" #include "skin_engine/skin_engine.h" -#endif #include "logfdisp.h" #include "core_alloc.h" #include "pcmbuf.h" @@ -300,7 +298,6 @@ static bool dbg_cpuinfo(void) #endif -#ifdef HAVE_LCD_BITMAP static unsigned int ticks, freq_sum; #ifndef CPU_MULTI_FREQUENCY static unsigned int boost_ticks; @@ -442,7 +439,6 @@ static bool dbg_buffering_thread(void) return false; } -#endif /* HAVE_LCD_BITMAP */ static const char* bf_getname(int selected_item, void *data, char *buffer, size_t buffer_len) @@ -688,9 +684,7 @@ static bool dbg_pcf(void) { int line; -#ifdef HAVE_LCD_BITMAP lcd_setfont(FONT_SYSFIXED); -#endif lcd_clear_display(); while(1) @@ -731,9 +725,7 @@ static bool dbg_cpufreq(void) int x = 0; bool done = false; -#ifdef HAVE_LCD_BITMAP lcd_setfont(FONT_SYSFIXED); -#endif lcd_clear_display(); while(!done) @@ -838,7 +830,7 @@ static bool tsc2100_debug(void) return simplelist_show_list(&info); } #endif -#if (CONFIG_BATTERY_MEASURE != 0) && defined(HAVE_LCD_BITMAP) && !defined(SIMULATOR) +#if (CONFIG_BATTERY_MEASURE != 0) && !defined(SIMULATOR) /* * view_battery() shows a automatically scaled graph of the battery voltage * over time. Usable for estimating battery life / charging rate. @@ -1165,7 +1157,7 @@ static bool view_battery(void) return false; } -#endif /* (CONFIG_BATTERY_MEASURE != 0) && HAVE_LCD_BITMAP */ +#endif /* (CONFIG_BATTERY_MEASURE != 0) */ #if (CONFIG_PLATFORM & PLATFORM_NATIVE) #if (CONFIG_STORAGE & STORAGE_MMC) || (CONFIG_STORAGE & STORAGE_SD) @@ -2103,7 +2095,7 @@ static bool dbg_fm_radio(void) #endif /* CONFIG_TUNER */ #endif /* !SIMULATOR */ -#if defined(HAVE_LCD_BITMAP) && !defined(APPLICATION) +#if !defined(APPLICATION) extern bool do_screendump_instead_of_usb; static bool dbg_screendump(void) @@ -2112,7 +2104,7 @@ static bool dbg_screendump(void) splashf(HZ, "Screendump %sabled", do_screendump_instead_of_usb?"en":"dis"); return false; } -#endif /* HAVE_LCD_BITMAP */ +#endif /* !APPLICATION */ extern bool write_metadata_log; @@ -2397,7 +2389,6 @@ static bool dbg_pic(void) } #endif -#ifdef HAVE_LCD_BITMAP static bool dbg_skin_engine(void) { struct simplelist_info info; @@ -2451,7 +2442,6 @@ static bool dbg_skin_engine(void) #endif return simplelist_show_list(&info); } -#endif #if defined(HAVE_BOOTDATA) && !defined(SIMULATOR) static bool dbg_boot_data(void) @@ -2528,7 +2518,6 @@ static const struct { #ifdef __linux__ { "View CPU stats", dbg_cpuinfo }, #endif -#ifdef HAVE_LCD_BITMAP #if (CONFIG_BATTERY_MEASURE != 0) && !defined(SIMULATOR) { "View battery", view_battery }, #endif @@ -2536,7 +2525,6 @@ static const struct { { "Screendump", dbg_screendump }, #endif { "Skin Engine RAM usage", dbg_skin_engine }, -#endif #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || (defined(SONY_NWZ_LINUX) && !defined(SIMULATOR)) { "View HW info", dbg_hw_info }, #endif @@ -2559,12 +2547,10 @@ static const struct { #ifdef HAVE_TAGCACHE { "View database info", dbg_tagcache_info }, #endif -#ifdef HAVE_LCD_BITMAP { "View buffering thread", dbg_buffering_thread }, #ifdef PM_DEBUG { "pm histogram", peak_meter_histogram}, #endif /* PM_DEBUG */ -#endif /* HAVE_LCD_BITMAP */ { "View buflib allocs", dbg_buflib_allocs }, #ifndef SIMULATOR #if CONFIG_TUNER diff --git a/apps/features.txt b/apps/features.txt index 657b799345..7d88cb88c3 100644 --- a/apps/features.txt +++ b/apps/features.txt @@ -60,9 +60,7 @@ hold_button hotkey #endif -#if defined(HAVE_LCD_BITMAP) lcd_bitmap -#endif #if LCD_DEPTH > 1 lcd_non-mono diff --git a/apps/filetree.c b/apps/filetree.c index e45348dc18..d645b7225c 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -44,9 +44,7 @@ #include "filetree.h" #include "misc.h" #include "strnatcmp.h" -#ifdef HAVE_LCD_BITMAP #include "keyboard.h" -#endif #if CONFIG_TUNER #include "radio.h" @@ -339,13 +337,11 @@ int ft_load(struct tree_context* c, const char* tempdir) (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_M3U) || (*c->dirfilter == SHOW_SUPPORTED && !filetype_supported(dptr->attr)))) || (*c->dirfilter == SHOW_WPS && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_WPS) || -#ifdef HAVE_LCD_BITMAP (*c->dirfilter == SHOW_FONT && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_FONT) || (*c->dirfilter == SHOW_SBS && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_SBS) || #if CONFIG_TUNER (*c->dirfilter == SHOW_FMS && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_FMS) || #endif -#endif #ifdef HAVE_REMOTE_LCD (*c->dirfilter == SHOW_RWPS && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_RWPS) || (*c->dirfilter == SHOW_RSBS && (dptr->attr & FILE_ATTR_MASK) != FILE_ATTR_RSBS) || @@ -399,7 +395,6 @@ int ft_load(struct tree_context* c, const char* tempdir) tree_unlock_cache(c); return 0; } -#ifdef HAVE_LCD_BITMAP static void ft_load_font(char *file) { int current_font_id; @@ -428,8 +423,7 @@ static void ft_load_font(char *file) screens[screen].setuifont( font_load_ex(file,0,global_settings.glyphs_to_cache)); viewportmanager_theme_changed(THEME_UI_VIEWPORT); -} -#endif +} int ft_enter(struct tree_context* c) { @@ -550,13 +544,11 @@ int ft_enter(struct tree_context* c) #endif #endif -#ifdef HAVE_LCD_BITMAP case FILE_ATTR_SBS: splash(0, ID2P(LANG_WAIT)); set_file(buf, (char *)global_settings.sbs_file, MAX_FILENAME); settings_apply_skins(); break; -#endif #ifdef HAVE_REMOTE_LCD case FILE_ATTR_RSBS: splash(0, ID2P(LANG_WAIT)); @@ -610,7 +602,6 @@ int ft_enter(struct tree_context* c) splash(HZ, ID2P(LANG_LANGUAGE_LOADED)); break; -#ifdef HAVE_LCD_BITMAP case FILE_ATTR_FONT: ft_load_font(buf); break; @@ -621,7 +612,6 @@ int ft_enter(struct tree_context* c) splash(HZ, ID2P(LANG_KEYBOARD_LOADED)); set_file(buf, (char *)global_settings.kbd_file, MAX_FILENAME); break; -#endif #if (CONFIG_PLATFORM & PLATFORM_NATIVE) /* firmware file */ diff --git a/apps/filetypes.c b/apps/filetypes.c index 9abcfec884..39fb2c5b32 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -43,11 +43,7 @@ /* max filetypes (plugins & icons stored here) */ #define MAX_FILETYPES 192 /* max viewer plugins */ -#ifdef HAVE_LCD_BITMAP #define MAX_VIEWERS 56 -#else -#define MAX_VIEWERS 24 -#endif /* a table for the known file types */ static const struct filetype inbuilt_filetypes[] = { @@ -129,15 +125,11 @@ static const struct filetype inbuilt_filetypes[] = { { "lng", FILE_ATTR_LNG, Icon_Language, LANG_LANGUAGE }, { "rock",FILE_ATTR_ROCK,Icon_Plugin, VOICE_EXT_ROCK }, { "lua", FILE_ATTR_LUA, Icon_Plugin, VOICE_EXT_ROCK }, -#ifdef HAVE_LCD_BITMAP { "fnt", FILE_ATTR_FONT,Icon_Font, VOICE_EXT_FONT }, { "kbd", FILE_ATTR_KBD, Icon_Keyboard, VOICE_EXT_KBD }, -#endif { "bmark",FILE_ATTR_BMARK, Icon_Bookmark, VOICE_EXT_BMARK }, { "cue", FILE_ATTR_CUE, Icon_Bookmark, VOICE_EXT_CUESHEET }, -#ifdef HAVE_LCD_BITMAP { "sbs", FILE_ATTR_SBS, Icon_Wps, VOICE_EXT_SBS }, -#endif #ifdef HAVE_REMOTE_LCD { "rsbs", FILE_ATTR_RSBS, Icon_Wps, VOICE_EXT_RSBS }, #if CONFIG_TUNER @@ -289,7 +281,6 @@ void read_color_theme_file(void) { close(fd); } #endif -#ifdef HAVE_LCD_BITMAP void read_viewer_theme_file(void) { char buffer[MAX_PATH]; @@ -340,7 +331,6 @@ void read_viewer_theme_file(void) close(fd); custom_icons_loaded = true; } -#endif void filetype_init(void) { @@ -368,9 +358,7 @@ void filetype_init(void) read_builtin_types(); read_config(fd); close(fd); -#ifdef HAVE_LCD_BITMAP read_viewer_theme_file(); -#endif #ifdef HAVE_LCD_COLOR read_color_theme_file(); #endif diff --git a/apps/gui/bitmap/list-skinned.c b/apps/gui/bitmap/list-skinned.c index d6b868ae26..f0396263f3 100644 --- a/apps/gui/bitmap/list-skinned.c +++ b/apps/gui/bitmap/list-skinned.c @@ -236,7 +236,7 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list) int cols = (parent->width / listcfg[screen]->width); current_column = (cur_line)%cols; current_row = (cur_line)/cols; - + skin_viewport->vp.x = parent->x + listcfg[screen]->width*current_column + original_x; skin_viewport->vp.y = parent->y + listcfg[screen]->height*current_row + original_y; } @@ -249,7 +249,6 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list) (listcfg[screen]->height*cur_line); } display->set_viewport(&skin_viewport->vp); -#ifdef HAVE_LCD_BITMAP /* Set images to not to be displayed */ struct skin_token_list *imglist = SKINOFFSETTOPTR(get_skin_buffer(wps.data), wps.data->images); while (imglist) @@ -259,13 +258,10 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list) img->display = -1; imglist = SKINOFFSETTOPTR(get_skin_buffer(wps.data), imglist->next); } -#endif struct skin_element** children = SKINOFFSETTOPTR(get_skin_buffer(wps.data), viewport->children); skin_render_viewport(SKINOFFSETTOPTR(get_skin_buffer(wps.data), (intptr_t)children[0]), &wps, skin_viewport, SKIN_REFRESH_ALL); -#ifdef HAVE_LCD_BITMAP wps_display_images(&wps, &skin_viewport->vp); -#endif /* force disableing scroll because it breaks later */ if (!is_selected) { diff --git a/apps/gui/icon.c b/apps/gui/icon.c index db3ae2c96b..5190c54ea5 100644 --- a/apps/gui/icon.c +++ b/apps/gui/icon.c @@ -144,11 +144,7 @@ void screen_put_iconxy(struct screen * display, void screen_put_cursorxy(struct screen * display, int x, int y, bool on) { -#ifdef HAVE_LCD_BITMAP screen_put_icon(display, x, y, on?Icon_Cursor:0); -#else - screen_put_icon(display, x, y, on?CURSOR_CHAR:-1); -#endif } static int buflib_move_callback(int handle, void* current, void* new) diff --git a/apps/gui/icon.h b/apps/gui/icon.h index 88449c61ca..4165391316 100644 --- a/apps/gui/icon.h +++ b/apps/gui/icon.h @@ -24,11 +24,7 @@ #include "screen_access.h" /* Defines a type for the icons since it's not the same thing on * char-based displays and bitmap displays */ -#ifdef HAVE_LCD_BITMAP typedef const unsigned char * ICON; -#else -typedef long ICON; -#endif /* Don't #ifdef icon values, or we wont be able to use the same bmp for every target. */ diff --git a/apps/gui/line.c b/apps/gui/line.c index ea6bcea93b..d319ff3c51 100644 --- a/apps/gui/line.c +++ b/apps/gui/line.c @@ -294,7 +294,6 @@ next: } } -#ifdef HAVE_LCD_BITMAP static void style_line(struct screen *display, int x, int y, struct line_desc *line) { @@ -380,7 +379,6 @@ static void style_line(struct screen *display, } #endif } -#endif /* HAVE_LCD_BITMAP */ void vput_line(struct screen *display, int x, int y, struct line_desc *line, diff --git a/apps/gui/list.c b/apps/gui/list.c index b1120aa794..ee4684233f 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -47,17 +47,14 @@ */ #define FRAMEDROP_TRIGGER 6 -#ifdef HAVE_LCD_BITMAP static int offset_step = 16; /* pixels per screen scroll step */ /* should lines scroll out of the screen */ static bool offset_out_of_view = false; -#endif static void gui_list_select_at_offset(struct gui_synclist * gui_list, int offset); void list_draw(struct screen *display, struct gui_synclist *list); -#ifdef HAVE_LCD_BITMAP static long last_dirty_tick; static struct viewport parent[NB_SCREENS]; @@ -92,23 +89,7 @@ static void list_init_viewports(struct gui_synclist *list) } list->dirty_tick = current_tick; } -#else -static struct viewport parent[NB_SCREENS] = -{ - [SCREEN_MAIN] = - { - .x = 0, - .y = 0, - .width = LCD_WIDTH, - .height = LCD_HEIGHT - }, -}; -#define list_init_viewports(a) -#define list_is_dirty(a) false -#endif - -#ifdef HAVE_LCD_BITMAP static int list_nb_lines(struct gui_synclist *list, enum screen_type screen) { struct viewport *vp = list->parent[screen]; @@ -148,13 +129,6 @@ void list_init_item_height(struct gui_synclist *list, enum screen_type screen) #endif } -#else -#define list_display_title(l, i) false -#define list_get_nb_lines(list, screen) \ - viewport_get_nb_lines((list)->parent[(screen)]); -#define list_init_item_height(l, i) -#endif - /* * Initializes a scrolling list * - gui_list : the list structure to initialize @@ -181,9 +155,7 @@ void gui_synclist_init(struct gui_synclist * gui_list, FOR_NB_SCREENS(i) { gui_list->start_item[i] = 0; -#ifdef HAVE_LCD_BITMAP gui_list->offset_position[i] = 0; -#endif if (list_parent) gui_list->parent[i] = &list_parent[i]; else @@ -216,7 +188,6 @@ void gui_synclist_hide_selection_marker(struct gui_synclist * lists, bool hide) } -#ifdef HAVE_LCD_BITMAP int gui_list_get_item_offset(struct gui_synclist * gui_list, int item_width, int text_pos, @@ -248,7 +219,6 @@ int gui_list_get_item_offset(struct gui_synclist * gui_list, return item_offset; } -#endif /* * Force a full screen update. @@ -264,9 +234,7 @@ void gui_synclist_draw(struct gui_synclist *gui_list) } FOR_NB_SCREENS(i) { -#ifdef HAVE_LCD_BITMAP if (!skinlist_draw(&screens[i], gui_list)) -#endif list_draw(&screens[i], gui_list); } } @@ -481,7 +449,6 @@ void gui_synclist_del_item(struct gui_synclist * gui_list) } } -#ifdef HAVE_LCD_BITMAP void gui_list_screen_scroll_step(int ofs) { offset_step = ofs; @@ -491,7 +458,6 @@ void gui_list_screen_scroll_out_of_view(bool enable) { offset_out_of_view = enable; } -#endif /* HAVE_LCD_BITMAP */ /* * Set the title and title icon of the list. Setting title to NULL disables @@ -502,22 +468,18 @@ void gui_synclist_set_title(struct gui_synclist * gui_list, { gui_list->title = title; gui_list->title_icon = icon; -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) sb_set_title_text(title, icon, i); -#endif send_event(GUI_EVENT_ACTIONUPDATE, (void*)1); } void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items) { lists->nb_items = nb_items; -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) { lists->offset_position[i] = 0; } -#endif } int gui_synclist_get_nb_items(struct gui_synclist * lists) { @@ -576,7 +538,6 @@ void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll) lists->limit_scroll = scroll; } -#ifdef HAVE_LCD_BITMAP /* * Makes all the item in the list scroll by one step to the right. * Should stop increasing the value when reaching the widest item value @@ -608,7 +569,6 @@ static void gui_synclist_scroll_left(struct gui_synclist * lists) lists->offset_position[i] = 0; } } -#endif /* HAVE_LCD_BITMAP */ bool gui_synclist_keyclick_callback(int action, void* data) { @@ -652,9 +612,7 @@ bool gui_synclist_do_button(struct gui_synclist * lists, int *actionptr, enum list_wrap wrap) { int action = *actionptr; -#ifdef HAVE_LCD_BITMAP static bool pgleft_allow_cancel = false; -#endif #ifdef HAVE_WHEEL_ACCELERATION int next_item_modifier = button_apply_acceleration(get_action_data()); @@ -753,7 +711,6 @@ bool gui_synclist_do_button(struct gui_synclist * lists, *actionptr = ACTION_STD_NEXT; return true; -#ifdef HAVE_LCD_BITMAP case ACTION_TREE_PGRIGHT: gui_synclist_scroll_right(lists); gui_synclist_draw(lists); @@ -784,7 +741,6 @@ bool gui_synclist_do_button(struct gui_synclist * lists, pgleft_allow_cancel = false; /* stop ACTION_TREE_PAGE_LEFT skipping to root */ return true; -#endif /* for pgup / pgdown, we are obliged to have a different behaviour depending * on the screen for which the user pressed the key since for example, remote * and main screen doesn't have the same number of lines */ diff --git a/apps/gui/list.h b/apps/gui/list.h index 9107bf0591..f860e27bf9 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -102,9 +102,7 @@ struct gui_synclist int selected_size; /* the number of pixels each line occupies (including optional padding on touchscreen */ int line_height[NB_SCREENS]; -#ifdef HAVE_LCD_BITMAP int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */ -#endif long scheduled_talk_tick, last_talked_tick, dirty_tick; list_get_icon *callback_get_item_icon; @@ -127,14 +125,12 @@ struct gui_synclist }; -#ifdef HAVE_LCD_BITMAP extern void list_init(void); /* parse global setting to static int */ extern void gui_list_screen_scroll_step(int ofs); /* parse global setting to static bool */ extern void gui_list_screen_scroll_out_of_view(bool enable); -#endif /* HAVE_LCD_BITMAP */ extern void gui_synclist_init( struct gui_synclist * lists, @@ -179,7 +175,7 @@ extern bool gui_synclist_keyclick_callback(int action, void* data); extern bool gui_synclist_do_button(struct gui_synclist * lists, int *action, enum list_wrap); -#if defined(HAVE_LCD_BITMAP) && !defined(PLUGIN) +#if !defined(PLUGIN) struct listitem_viewport_cfg { struct wps_data *data; OFFSETTYPE(char *) label; @@ -204,7 +200,7 @@ enum themable_icons skinlist_get_item_icon(int offset, bool wrap); bool skinlist_needs_scrollbar(enum screen_type screen); void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown); int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list); -#endif +#endif /* !PLUGIN) */ #if defined(HAVE_TOUCHSCREEN) /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 2e4bd8580c..532659e580 100644 --- a/apps/gui/scrollbar.c +++ b/apps/gui/scrollbar.c @@ -20,7 +20,6 @@ ****************************************************************************/ #include "scrollbar.h" -#ifdef HAVE_LCD_BITMAP #include "config.h" #include "limits.h" #include "bmp.h" @@ -264,5 +263,3 @@ void show_busy_slider(struct screen *s, int x, int y, int width, int height) dir = 1; } } - -#endif /* HAVE_LCD_BITMAP */ diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h index dcaef5721d..fa0907c686 100644 --- a/apps/gui/scrollbar.h +++ b/apps/gui/scrollbar.h @@ -23,8 +23,6 @@ #define _GUI_SCROLLBAR_H_ #include "screen_access.h" -#ifdef HAVE_LCD_BITMAP - enum orientation { VERTICAL = 0x0000, /* Vertical orientation */ HORIZONTAL = 0x0001, /* Horizontal orientation */ @@ -64,5 +62,4 @@ extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, unsigned flags); extern void show_busy_slider(struct screen *s, int x, int y, int width, int height); -#endif /* HAVE_LCD_BITMAP */ #endif /* _GUI_SCROLLBAR_H_ */ diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 345d74b65c..bd3a2b40aa 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c @@ -47,14 +47,12 @@ #include "list.h" #include "option_select.h" -#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" /* Image stuff */ #include "bmp.h" #ifdef HAVE_ALBUMART #include "albumart.h" #endif -#endif #include "cuesheet.h" #include "playback.h" @@ -93,9 +91,6 @@ void skin_update(enum skinnable_screens skin, enum screen_type screen, SKIN_REFRESH_ALL : update_type); } -#ifdef HAVE_LCD_BITMAP - - #ifdef AB_REPEAT_ENABLE #define DIRECTION_RIGHT 1 @@ -171,7 +166,7 @@ void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb) int x = pb->x, y = pb->y, width = pb->width, height = pb->height; unsigned long length, end; int flags = HORIZONTAL; - + if (height < 0) height = font_get(vp->font)->height; @@ -423,8 +418,6 @@ void wps_display_images(struct gui_wps *gwps, struct viewport* vp) display->set_drawmode(DRMODE_SOLID); } -#endif /* HAVE_LCD_BITMAP */ - /* Evaluate the conditional that is at *token_index and return whether a skip has ocurred. *token_index is updated with the new position. */ @@ -587,21 +580,17 @@ void write_line(struct screen *display, struct align_pos *format_align, else { linedes->scroll = false; -#ifdef HAVE_LCD_BITMAP /* clear the line first */ display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); display->fillrect(0, line*string_height, viewport_width, string_height); display->set_drawmode(DRMODE_SOLID); -#endif /* Nasty hack: we output an empty scrolling string, which will reset the scroller for that line */ display->puts_scroll(0, line, (unsigned char *)""); -#ifdef HAVE_LCD_BITMAP line *= string_height; center_xpos = (viewport_width-center_width)/2; right_xpos = viewport_width-right_width; -#endif /* print aligned strings. print whole line at once so that %Vs works * across the full viewport width */ char *left = format_align->left ?: ""; @@ -614,7 +603,6 @@ void write_line(struct screen *display, struct align_pos *format_align, } } -#ifdef HAVE_LCD_BITMAP void draw_peakmeters(struct gui_wps *gwps, int line_number, struct viewport *viewport) { @@ -645,15 +633,12 @@ bool skin_has_sbs(enum screen_type screen, struct wps_data *data) (void)screen; (void)data; bool draw = false; -#ifdef HAVE_LCD_BITMAP if (data->wps_sb_tag) draw = data->show_sb_on_wps; else if (statusbar_position(screen) != STATUSBAR_OFF) draw = true; -#endif return draw; } -#endif /* do the button loop as often as required for the peak meters to update * with a good refresh rate. @@ -661,7 +646,6 @@ bool skin_has_sbs(enum screen_type screen, struct wps_data *data) int skin_wait_for_action(enum skinnable_screens skin, int context, int timeout) { int button = ACTION_NONE; -#ifdef HAVE_LCD_BITMAP /* when the peak meter is enabled we want to have a few extra updates to make it look smooth. On the other hand we don't want to waste energy if it @@ -700,7 +684,6 @@ int skin_wait_for_action(enum skinnable_screens skin, int context, int timeout) /* The peak meter is disabled -> no additional screen updates needed */ else -#endif { button = get_action(context, timeout); } diff --git a/apps/gui/skin_engine/skin_display.h b/apps/gui/skin_engine/skin_display.h index 01a2169952..de1b0b20b5 100644 --- a/apps/gui/skin_engine/skin_display.h +++ b/apps/gui/skin_engine/skin_display.h @@ -29,7 +29,6 @@ #define _SKIN_DISPLAY_H_ -#ifdef HAVE_LCD_BITMAP void draw_progressbar(struct gui_wps *gwps, int line, struct progressbar *pb); void draw_playlist_viewer_list(struct gui_wps *gwps, struct playlistviewer *viewer); /* clears the area where the image was shown */ @@ -40,7 +39,6 @@ void wps_display_images(struct gui_wps *gwps, struct viewport* vp); void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps, struct skin_viewport* skin_viewport, unsigned long refresh_type); -#endif /* Evaluate the conditional that is at *token_index and return whether a skip has ocurred. *token_index is updated with the new position. diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index ec4e1fd073..cd763def1c 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -56,9 +56,7 @@ static struct gui_skin_helper { char* (*default_skin)(enum screen_type screen); bool load_on_boot; } skin_helpers[SKINNABLE_SCREENS_COUNT] = { -#ifdef HAVE_LCD_BITMAP [CUSTOM_STATUSBAR] = { sb_preproccess, sb_postproccess, sb_create_from_settings, true }, -#endif [WPS] = { NULL, NULL, wps_default_skin, true }, #if CONFIG_TUNER [FM_SCREEN] = { NULL, NULL, default_radio_skin, false } @@ -115,10 +113,8 @@ static void gui_skin_reset(struct gui_skin *skin) #ifdef HAVE_SKIN_VARIABLES skin->data.skinvars = -1; #endif -#ifdef HAVE_LCD_BITMAP skin->data.font_ids = -1; skin->data.images = -1; -#endif #ifdef HAVE_ALBUMART skin->data.albumart = -1; skin->data.playback_aa_slot = -1; @@ -157,9 +153,7 @@ void settings_apply_skins(void) char filename[MAX_PATH]; static bool first_run = true; -#ifdef HAVE_LCD_BITMAP skin_backdrop_init(); -#endif skins_initialised = true; /* Make sure each skin is loaded */ @@ -236,7 +230,6 @@ static char* get_skin_filename(char *buf, size_t buf_size, char *setting = NULL, *ext = NULL; switch (skin) { -#ifdef HAVE_LCD_BITMAP case CUSTOM_STATUSBAR: #if defined(HAVE_REMOTE_LCD) && NB_SCREENS > 1 if (screen == SCREEN_REMOTE) @@ -251,7 +244,6 @@ static char* get_skin_filename(char *buf, size_t buf_size, ext = "sbs"; } break; -#endif case WPS: #if defined(HAVE_REMOTE_LCD) && NB_SCREENS > 1 if (screen == SCREEN_REMOTE) @@ -296,10 +288,8 @@ static char* get_skin_filename(char *buf, size_t buf_size, struct gui_wps *skin_get_gwps(enum skinnable_screens skin, enum screen_type screen) { -#ifdef HAVE_LCD_BITMAP if (skin == CUSTOM_STATUSBAR && !skins_initialised) return &skins[skin][screen].gui_wps; -#endif if (skins[skin][screen].data.wps_loaded == false) { diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h index 59e00b5176..55839608be 100644 --- a/apps/gui/skin_engine/skin_engine.h +++ b/apps/gui/skin_engine/skin_engine.h @@ -30,15 +30,12 @@ #include "wps_internals.h" /* TODO: remove this line.. shoudlnt be needed */ enum skinnable_screens { -#ifdef HAVE_LCD_BITMAP CUSTOM_STATUSBAR, -#endif WPS, #if CONFIG_TUNER FM_SCREEN, #endif - - + SKINNABLE_SCREENS_COUNT }; diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index de7c1db372..f3a23377ef 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -66,9 +66,7 @@ #include "tuner.h" #endif -#ifdef HAVE_LCD_BITMAP #include "bmp.h" -#endif #ifdef HAVE_ALBUMART #include "playback.h" @@ -127,7 +125,6 @@ typedef int (*parse_function)(struct skin_element *element, struct wps_token *token, struct wps_data *wps_data); -#ifdef HAVE_LCD_BITMAP /* add a skin_token_list item to the list chain. ALWAYS appended because some of the * chains require the order to be kept. */ @@ -147,9 +144,6 @@ static void add_to_ll_chain(OFFSETTYPE(struct skin_token_list *) *listoffset, } } -#endif - - void *skin_find_item(const char *label, enum skin_find_what what, struct wps_data *data) { @@ -170,11 +164,9 @@ void *skin_find_item(const char *label, enum skin_find_what what, list.vplist = SKINOFFSETTOPTR(databuf, data->tree); isvplist = true; break; -#ifdef HAVE_LCD_BITMAP case SKIN_FIND_IMAGE: list.linkedlist = SKINOFFSETTOPTR(databuf, data->images); break; -#endif #ifdef HAVE_TOUCHSCREEN case SKIN_FIND_TOUCHREGION: list.linkedlist = SKINOFFSETTOPTR(databuf, data->touchregions); @@ -190,11 +182,9 @@ void *skin_find_item(const char *label, enum skin_find_what what, while (list.linkedlist) { bool skip = false; -#ifdef HAVE_LCD_BITMAP struct wps_token *token = NULL; if (!isvplist) token = SKINOFFSETTOPTR(databuf, list.linkedlist->token); -#endif switch (what) { case SKIN_FIND_UIVP: @@ -207,12 +197,10 @@ void *skin_find_item(const char *label, enum skin_find_what what, skip = !(((struct skin_viewport *)ret)->is_infovp == (what==SKIN_FIND_UIVP)); break; -#ifdef HAVE_LCD_BITMAP case SKIN_FIND_IMAGE: ret = SKINOFFSETTOPTR(databuf, token->value.data); itemlabel = SKINOFFSETTOPTR(databuf, ((struct gui_img *)ret)->label); break; -#endif #ifdef HAVE_TOUCHSCREEN case SKIN_FIND_TOUCHREGION: ret = SKINOFFSETTOPTR(databuf, token->value.data); @@ -240,8 +228,6 @@ void *skin_find_item(const char *label, enum skin_find_what what, return NULL; } -#ifdef HAVE_LCD_BITMAP - /* create and init a new wpsll item. * passing NULL to token will alloc a new one. * You should only pass NULL for the token when the token type (table above) @@ -493,9 +479,6 @@ static int parse_font_load(struct skin_element *element, return 0; } - -#ifdef HAVE_LCD_BITMAP - static int parse_playlistview(struct skin_element *element, struct wps_token *token, struct wps_data *wps_data) @@ -513,7 +496,7 @@ static int parse_playlistview(struct skin_element *element, return 0; } -#endif + #ifdef HAVE_LCD_COLOR static int parse_viewport_gradient_setup(struct skin_element *element, struct wps_token *token, @@ -756,8 +739,6 @@ static int parse_image_special(struct skin_element *element, } #endif -#endif /* HAVE_LCD_BITMAP */ - static int parse_progressbar_tag(struct skin_element* element, struct wps_token *token, struct wps_data *wps_data); @@ -898,7 +879,6 @@ static int parse_progressbar_tag(struct skin_element* element, struct wps_token *token, struct wps_data *wps_data) { -#ifdef HAVE_LCD_BITMAP struct progressbar *pb; struct viewport *vp = &curr_vp->vp; struct skin_tag_parameter *param = get_param(element, 0); @@ -1211,20 +1191,7 @@ static int parse_progressbar_tag(struct skin_element* element, add_to_ll_chain(&wps_data->touchregions, item); } #endif - return 0; - -#else - (void)element; - if (token->type == SKIN_TOKEN_PROGRESSBAR || - token->type == SKIN_TOKEN_PLAYER_PROGRESSBAR) - { - wps_data->full_line_progressbar = - token->type == SKIN_TOKEN_PLAYER_PROGRESSBAR; - } - return 0; - -#endif } #ifdef HAVE_ALBUMART @@ -1741,7 +1708,6 @@ void skin_data_free_buflib_allocs(struct wps_data *wps_data) { if (wps_data->wps_loaded) skin_buffer = get_skin_buffer(wps_data); -#ifdef HAVE_LCD_BITMAP #ifndef __PCTOOL__ struct skin_token_list *list = SKINOFFSETTOPTR(skin_buffer, wps_data->images); int *font_ids = SKINOFFSETTOPTR(skin_buffer, wps_data->font_ids); @@ -1776,7 +1742,6 @@ void skin_data_free_buflib_allocs(struct wps_data *wps_data) core_free(wps_data->buflib_handle); wps_data->buflib_handle = -1; #endif -#endif } /* @@ -1787,9 +1752,7 @@ void skin_data_free_buflib_allocs(struct wps_data *wps_data) static void skin_data_reset(struct wps_data *wps_data) { skin_data_free_buflib_allocs(wps_data); -#ifdef HAVE_LCD_BITMAP wps_data->images = INVALID_OFFSET; -#endif wps_data->tree = INVALID_OFFSET; #ifdef HAVE_BACKDROP_IMAGE if (wps_data->backdrop_id >= 0) @@ -1811,15 +1774,12 @@ static void skin_data_reset(struct wps_data *wps_data) } #endif -#ifdef HAVE_LCD_BITMAP wps_data->peak_meter_enabled = false; wps_data->wps_sb_tag = false; wps_data->show_sb_on_wps = false; -#endif wps_data->wps_loaded = false; } -#ifdef HAVE_LCD_BITMAP #ifndef __PCTOOL__ static int currently_loading_handle = -1; static int buflib_move_callback(int handle, void* current, void* new) @@ -2065,7 +2025,6 @@ static bool skin_load_fonts(struct wps_data *data) return success; } -#endif /* HAVE_LCD_BITMAP */ static int convert_viewport(struct wps_data *data, struct skin_element* element) { struct skin_viewport *skin_vp = skin_buffer_alloc(sizeof(*skin_vp)); @@ -2176,11 +2135,9 @@ static int convert_viewport(struct wps_data *data, struct skin_element* element) skin_vp->vp.height = display->lcdheight - skin_vp->vp.y; } param++; -#ifdef HAVE_LCD_BITMAP /* font */ if (!isdefault(param)) skin_vp->parsed_fontid = param->data.number; -#endif if ((unsigned) skin_vp->vp.x >= (unsigned) display->lcdwidth || skin_vp->vp.width + skin_vp->vp.x > display->lcdwidth || (unsigned) skin_vp->vp.y >= (unsigned) display->lcdheight || @@ -2259,7 +2216,6 @@ static int skin_element_callback(struct skin_element* element, void* data) case SKIN_TOKEN_TRACK_ENDING: function = parse_timeout_tag; break; -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_LIST_ITEM_TEXT: case SKIN_TOKEN_LIST_ITEM_ICON: function = parse_listitem; @@ -2274,7 +2230,6 @@ static int skin_element_callback(struct skin_element* element, void* data) sb_skin_has_title(curr_screen); #endif break; -#endif #if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)) case SKIN_TOKEN_DRAWRECTANGLE: function = parse_drawrectangle; @@ -2309,7 +2264,6 @@ static int skin_element_callback(struct skin_element* element, void* data) case SKIN_TOKEN_SETTING: function = parse_setting_and_lang; break; -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_VIEWPORT_CUSTOMLIST: function = parse_playlistview; break; @@ -2331,7 +2285,6 @@ static int skin_element_callback(struct skin_element* element, void* data) case SKIN_TOKEN_LIST_ITEM_CFG: function = parse_listitemviewport; break; -#endif #ifdef HAVE_TOUCHSCREEN case SKIN_TOKEN_TOUCHREGION: function = parse_touchregion; @@ -2423,14 +2376,12 @@ bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, char *wps_buffer = NULL; if (!wps_data || !buf) return false; -#ifdef HAVE_LCD_BITMAP int i; for (i=0;ialbumart); diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index e14c882dd9..51c58fc196 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c @@ -77,12 +77,10 @@ struct skin_draw_info { typedef bool (*skin_render_func)(struct skin_element* alternator, struct skin_draw_info *info); bool skin_render_alternator(struct skin_element* alternator, struct skin_draw_info *info); -#ifdef HAVE_LCD_BITMAP static void skin_render_playlistviewer(struct playlistviewer* viewer, struct gui_wps *gwps, struct skin_viewport* skin_viewport, unsigned long refresh_type); -#endif static char* skin_buffer; @@ -99,11 +97,10 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, { struct wps_token *token = (struct wps_token *)SKINOFFSETTOPTR(skin_buffer, element->data); -#ifdef HAVE_LCD_BITMAP struct viewport *vp = &skin_vp->vp; struct wps_data *data = gwps->data; bool do_refresh = (element->tag->flags & info->refresh_type) > 0; -#endif + switch (token->type) { #if (LCD_DEPTH > 1) || (defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1)) @@ -181,7 +178,6 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, } } break; -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_LIST_ITEM_CFG: skinlist_set_cfg(gwps->display->screen_type, SKINOFFSETTOPTR(skin_buffer, token->value.data)); @@ -225,11 +221,9 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, case SKIN_TOKEN_PEAKMETER_RIGHTBAR: data->peak_meter_enabled = true; /* fall through to the progressbar code */ -#endif case SKIN_TOKEN_VOLUMEBAR: case SKIN_TOKEN_BATTERY_PERCENTBAR: case SKIN_TOKEN_SETTINGBAR: -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_PROGRESSBAR: case SKIN_TOKEN_TUNER_RSSI_BAR: case SKIN_TOKEN_LIST_SCROLLBAR: @@ -238,9 +232,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, if (do_refresh) draw_progressbar(gwps, info->line_number, bar); } -#endif break; -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_IMAGE_DISPLAY: { struct gui_img *img = SKINOFFSETTOPTR(skin_buffer, token->value.data); @@ -321,8 +313,7 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, skin_render_playlistviewer(SKINOFFSETTOPTR(skin_buffer, token->value.data), gwps, info->skin_vp, info->refresh_type); break; - -#endif /* HAVE_LCD_BITMAP */ + #ifdef HAVE_SKIN_VARIABLES case SKIN_TOKEN_VAR_SET: { @@ -352,16 +343,12 @@ static bool do_non_text_tags(struct gui_wps *gwps, struct skin_draw_info *info, } return true; } - - static void do_tags_in_hidden_conditional(struct skin_element* branch, struct skin_draw_info *info) { -#ifdef HAVE_LCD_BITMAP struct gui_wps *gwps = info->gwps; struct wps_data *data = gwps->data; -#endif /* Tags here are ones which need to be "turned off" or cleared * if they are in a conditional branch which isnt being used */ if (branch->type == LINE_ALTERNATOR) @@ -375,9 +362,7 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch, else if (branch->type == LINE && branch->children_count) { struct skin_element *child = get_child(branch->children, 0); -#if defined(HAVE_LCD_BITMAP) || defined(HAVE_ALBUMART) struct wps_token *token; -#endif while (child) { if (child->type == CONDITIONAL) @@ -395,10 +380,7 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch, child = SKINOFFSETTOPTR(skin_buffer, child->next); continue; } -#if defined(HAVE_LCD_BITMAP) || defined(HAVE_ALBUMART) token = (struct wps_token *)SKINOFFSETTOPTR(skin_buffer, child->data); -#endif -#ifdef HAVE_LCD_BITMAP /* clear all pictures in the conditional and nested ones */ if (token->type == SKIN_TOKEN_IMAGE_PRELOAD_DISPLAY) { @@ -420,7 +402,6 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch, viewport = SKINOFFSETTOPTR(skin_buffer, viewport->next)) { struct skin_viewport *skin_viewport = SKINOFFSETTOPTR(skin_buffer, viewport->data); - char *vplabel = SKINOFFSETTOPTR(skin_buffer, skin_viewport->label); if (skin_viewport->label == VP_DEFAULT_LABEL) vplabel = VP_DEFAULT_LABEL_STRING; @@ -460,7 +441,6 @@ static void do_tags_in_hidden_conditional(struct skin_element* branch, } } } -#endif #ifdef HAVE_ALBUMART else if (data->albumart && token->type == SKIN_TOKEN_ALBUMART_DISPLAY) { @@ -734,11 +714,10 @@ void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps, .offset = 0, .line_desc = LINE_DESC_DEFINIT, }; - + struct align_pos * align = &info.align; bool needs_update, update_all = false; skin_buffer = get_skin_buffer(gwps->data); -#ifdef HAVE_LCD_BITMAP /* Set images to not to be displayed */ struct skin_token_list *imglist = SKINOFFSETTOPTR(skin_buffer, gwps->data->images); while (imglist) @@ -752,10 +731,7 @@ void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps, /* fix font ID's */ if (skin_viewport->parsed_fontid == 1) skin_viewport->vp.font = display->getuifont(); -#endif - - while (line) { linebuf[0] = '\0'; @@ -811,9 +787,7 @@ void skin_render_viewport(struct skin_element* viewport, struct gui_wps *gwps, info.line_number++; line = SKINOFFSETTOPTR(skin_buffer, line->next); } -#ifdef HAVE_LCD_BITMAP wps_display_images(gwps, &skin_viewport->vp); -#endif } void skin_render(struct gui_wps *gwps, unsigned refresh_mode) @@ -903,8 +877,7 @@ void skin_render(struct gui_wps *gwps, unsigned refresh_mode) display->update(); } -#ifdef HAVE_LCD_BITMAP -static __attribute__((noinline)) +static __attribute__((noinline)) void skin_render_playlistviewer(struct playlistviewer* viewer, struct gui_wps *gwps, struct skin_viewport* skin_viewport, @@ -926,7 +899,7 @@ void skin_render_playlistviewer(struct playlistviewer* viewer, .offset = viewer->start_offset, .line_desc = LINE_DESC_DEFINIT, }; - + struct align_pos * align = &info.align; bool needs_update; int cur_pos, start_item, max; @@ -989,4 +962,3 @@ void skin_render_playlistviewer(struct playlistviewer* viewer, start_item++; } } -#endif diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 2528a0af55..db9a9e694b 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -41,11 +41,9 @@ #include "lang.h" #include "misc.h" #include "led.h" -#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" /* Image stuff */ #include "albumart.h" -#endif #include "playlist.h" #include "playback.h" #include "tdspeed.h" @@ -813,7 +811,6 @@ const char *get_token_value(struct gui_wps *gwps, if (intval) *intval = playlist_amount(); return buf; -#ifdef HAVE_LCD_BITMAP case SKIN_TOKEN_LIST_TITLE_TEXT: return sb_get_title(gwps->display->screen_type); case SKIN_TOKEN_LIST_TITLE_ICON: @@ -854,7 +851,6 @@ const char *get_token_value(struct gui_wps *gwps, } case SKIN_TOKEN_LIST_NEEDS_SCROLLBAR: return skinlist_needs_scrollbar(gwps->display->screen_type) ? "s" : ""; -#endif case SKIN_TOKEN_PLAYLIST_NAME: return playlist_name(NULL, buf, buf_size); @@ -1202,7 +1198,6 @@ const char *get_token_value(struct gui_wps *gwps, return "-"; #endif -#ifdef HAVE_LCD_BITMAP /* peakmeter */ case SKIN_TOKEN_PEAKMETER_LEFT: case SKIN_TOKEN_PEAKMETER_RIGHT: @@ -1218,7 +1213,6 @@ const char *get_token_value(struct gui_wps *gwps, data->peak_meter_enabled = true; return buf; } -#endif case SKIN_TOKEN_CROSSFADE: #ifdef HAVE_CROSSFADE diff --git a/apps/gui/skin_engine/wps_internals.h b/apps/gui/skin_engine/wps_internals.h index caf43b21cb..b7d7ff35d0 100644 --- a/apps/gui/skin_engine/wps_internals.h +++ b/apps/gui/skin_engine/wps_internals.h @@ -80,7 +80,6 @@ struct skin_token_list { OFFSETTYPE(struct skin_token_list *) next; }; -#ifdef HAVE_LCD_BITMAP struct gui_img { OFFSETTYPE(struct viewport*) vp; /* The viewport to display this image in */ short int x; /* x-pos */ @@ -137,9 +136,6 @@ struct draw_rectangle { unsigned start_colour; unsigned end_colour; }; -#endif - - struct align_pos { char* left; @@ -147,11 +143,7 @@ struct align_pos { char* right; }; -#ifdef HAVE_LCD_BITMAP #define WPS_MAX_TOKENS 1150 -#else -#define WPS_MAX_TOKENS 64 -#endif enum wps_parse_error { PARSE_OK, @@ -344,11 +336,9 @@ struct wps_data int buflib_handle; OFFSETTYPE(struct skin_element *) tree; -#ifdef HAVE_LCD_BITMAP OFFSETTYPE(struct skin_token_list *) images; OFFSETTYPE(int *) font_ids; int font_count; -#endif #ifdef HAVE_BACKDROP_IMAGE int backdrop_id; bool use_extra_framebuffer; @@ -370,11 +360,9 @@ struct wps_data OFFSETTYPE(struct skin_token_list *) skinvars; #endif -#ifdef HAVE_LCD_BITMAP bool peak_meter_enabled; bool wps_sb_tag; bool show_sb_on_wps; -#endif bool wps_loaded; }; @@ -448,9 +436,7 @@ const char *get_radio_token(struct wps_token *token, int preset_offset, enum skin_find_what { SKIN_FIND_VP = 0, SKIN_FIND_UIVP, -#ifdef HAVE_LCD_BITMAP SKIN_FIND_IMAGE, -#endif #ifdef HAVE_TOUCHSCREEN SKIN_FIND_TOUCHREGION, #endif diff --git a/apps/gui/splash.c b/apps/gui/splash.c index fa2c21768a..5bcac80169 100644 --- a/apps/gui/splash.c +++ b/apps/gui/splash.c @@ -31,16 +31,11 @@ #include "viewport.h" #include "strtok_r.h" -#ifdef HAVE_LCD_BITMAP - #define MAXLINES (LCD_HEIGHT/6) #define MAXBUFFER 512 #define RECT_SPACING 2 #define SPLASH_MEMORY_INTERVAL (HZ) -#endif - - static void splash_internal(struct screen * screen, const char *fmt, va_list ap) { char splash_buf[MAXBUFFER]; @@ -54,15 +49,13 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) int y, i; int space_w, w, h; struct viewport vp; -#ifdef HAVE_LCD_BITMAP int width, height; int maxw = 0; viewport_set_defaults(&vp, screen->screen_type); screen->set_viewport(&vp); - + screen->getstringsize(" ", &space_w, &h); -#endif y = h; vsnprintf(splash_buf, sizeof(splash_buf), fmt, ap); @@ -77,20 +70,14 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) lines[0] = next; while (true) { -#ifdef HAVE_LCD_BITMAP screen->getstringsize(next, &w, NULL); -#else - w = utf8length(next); -#endif if (lastbreak) { if (x + (next - lastbreak) * space_w + w > vp.width - RECT_SPACING*2) { /* too wide, wrap */ -#ifdef HAVE_LCD_BITMAP if (x > maxw) maxw = x; -#endif if ((y + h > vp.height) || (line >= (MAXLINES-1))) break; /* screen full or out of lines */ x = 0; @@ -109,10 +96,8 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) next = strtok_r(NULL, " ", &store); if (!next) { /* no more words */ -#ifdef HAVE_LCD_BITMAP if (x > maxw) maxw = x; -#endif break; } } @@ -123,8 +108,6 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) screen->scroll_stop(); -#ifdef HAVE_LCD_BITMAP - width = maxw + 2*RECT_SPACING; height = y + 2*RECT_SPACING; @@ -166,14 +149,11 @@ static void splash_internal(struct screen * screen, const char *fmt, va_list ap) /* prepare putting the text */ y = RECT_SPACING; -#endif /* print the message to screen */ for (i = 0; i <= line; i++, y+=h) { -#ifdef HAVE_LCD_BITMAP screen->putsxy(0, y, lines[i]); -#endif } screen->update_viewport(); end: diff --git a/apps/gui/statusbar-skinned.h b/apps/gui/statusbar-skinned.h index 237ec45c82..ad102bef47 100644 --- a/apps/gui/statusbar-skinned.h +++ b/apps/gui/statusbar-skinned.h @@ -23,8 +23,6 @@ #define DEFAULT_UPDATE_DELAY (HZ/7) -#ifdef HAVE_LCD_BITMAP - #include #include #include @@ -57,14 +55,5 @@ int sb_get_backdrop(enum screen_type screen); int sb_preproccess(enum screen_type screen, struct wps_data *data); int sb_postproccess(enum screen_type screen, struct wps_data *data); -#else /* CHARCELL */ -#define sb_skin_init() -#define sb_skin_data_load(a,b,c) -#define sb_skin_set_update_delay(a) -#define sb_skin_set_state(a,b) -#define sb_create_from_settings NULL -#define sb_preproccess NULL -#define sb_postproccess NULL -#endif void do_sbs_update_callback(unsigned short id, void *param); #endif /* __STATUSBAR_SKINNED_H__ */ diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 0c8f54f749..a43828b268 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -132,7 +132,6 @@ struct gui_syncstatusbar statusbars; /* Prototypes */ -#ifdef HAVE_LCD_BITMAP static void gui_statusbar_icon_battery(struct screen * display, int percent, int batt_charge_step); static bool gui_statusbar_icon_volume(struct gui_statusbar * bar, int volume); @@ -152,7 +151,6 @@ static void gui_statusbar_icon_recording_info(struct screen * display); #if CONFIG_RTC static void gui_statusbar_time(struct screen * display, struct tm *time); #endif -#endif /* End prototypes */ @@ -242,7 +240,6 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw, struct vi } bar->info.volume = global_settings.volume; -#ifdef HAVE_LCD_BITMAP bar->info.shuffle = global_settings.playlist_shuffle; #ifdef HAS_BUTTON_HOLD bar->info.keylock = button_hold(); @@ -349,11 +346,8 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw, struct vi display->set_viewport(NULL); bar->lastinfo = bar->info; } -#endif /* HAVE_LCD_BITMAP */ - } -#ifdef HAVE_LCD_BITMAP /* from icon.c */ /* * Print battery icon to status bar @@ -717,8 +711,6 @@ static void gui_statusbar_icon_recording_info(struct screen * display) } #endif /* HAVE_RECORDING */ -#endif /* HAVE_LCD_BITMAP */ - void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) { FOR_NB_SCREENS(i) { @@ -730,7 +722,6 @@ void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, bool force_redraw) { -#ifdef HAVE_LCD_BITMAP if(!global_settings.statusbar) return; struct viewport viewport; @@ -738,9 +729,6 @@ void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, GET_RECT(viewport,statusbar_position(i),&screens[i]); gui_statusbar_draw( &(bars->statusbars[i]), force_redraw, &viewport ); } -#else - gui_statusbar_draw( &(bars->statusbars[0]), force_redraw, NULL ); -#endif /* HAVE_LCD_BITMAP */ } diff --git a/apps/gui/usb_screen.c b/apps/gui/usb_screen.c index dd1d97df3c..3169831322 100644 --- a/apps/gui/usb_screen.c +++ b/apps/gui/usb_screen.c @@ -42,9 +42,7 @@ #include "playlist.h" #include "misc.h" -#ifdef HAVE_LCD_BITMAP #include "bitmaps/usblogo.h" -#endif #ifdef HAVE_REMOTE_LCD #include "bitmaps/remote_usblogo.h" @@ -122,15 +120,12 @@ static int handle_usb_events(void) struct usb_screen_vps_t { struct viewport parent; -#ifdef HAVE_LCD_BITMAP struct viewport logo; #ifdef USB_ENABLE_HID struct viewport title; #endif -#endif }; -#ifdef HAVE_LCD_BITMAP static void usb_screen_fix_viewports(struct screen *screen, struct usb_screen_vps_t *usb_screen_vps) { @@ -181,18 +176,15 @@ static void usb_screen_fix_viewports(struct screen *screen, } #endif } -#endif static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) { -#ifdef HAVE_LCD_BITMAP static const struct bitmap* logos[NB_SCREENS] = { &bm_usblogo, #ifdef HAVE_REMOTE_LCD &bm_remote_usblogo, #endif }; -#endif FOR_NB_SCREENS(i) { @@ -200,15 +192,12 @@ static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) struct usb_screen_vps_t *usb_screen_vps = &usb_screen_vps_ar[i]; struct viewport *parent = &usb_screen_vps->parent; -#ifdef HAVE_LCD_BITMAP struct viewport *logo = &usb_screen_vps->logo; -#endif screen->set_viewport(parent); screen->clear_viewport(); screen->backlight_on(); -#ifdef HAVE_LCD_BITMAP screen->set_viewport(logo); screen->bmp(logos[i], 0, 0); if (i == SCREEN_MAIN) @@ -228,14 +217,6 @@ static void usb_screens_draw(struct usb_screen_vps_t *usb_screen_vps_ar) } screen->set_viewport(parent); -#else /* !HAVE_LCD_BITMAP */ - screen->double_height(false); - screen->puts_scroll(0, 0, "[USB Mode]"); - status_set_param(false); - status_set_audio(false); - status_set_usb(true); -#endif /* HAVE_LCD_BITMAP */ - screen->set_viewport(NULL); screen->update_viewport(); } @@ -275,13 +256,11 @@ void gui_usb_screen_run(bool early_usb) /* update the UI before disabling fonts, this maximizes the propability * that font cache lookups succeed during USB */ send_event(GUI_EVENT_ACTIONUPDATE, NULL); -#ifdef HAVE_LCD_BITMAP if(!early_usb) { /* The font system leaves the .fnt fd's open, so we need for force close them all */ font_disable_all(); } -#endif usb_acknowledge(SYS_USB_CONNECTED_ACK); @@ -302,10 +281,8 @@ void gui_usb_screen_run(bool early_usb) { const struct viewport* vp = NULL; -#if defined(HAVE_LCD_BITMAP) && defined(USB_ENABLE_HID) +#if defined(USB_ENABLE_HID) vp = usb_hid ? &usb_screen_vps_ar[i].title : NULL; -#elif !defined(HAVE_LCD_BITMAP) - vp = &usb_screen_vps_ar[i].parent; #endif if (vp) screens[i].scroll_stop_viewport(vp); @@ -322,7 +299,6 @@ void gui_usb_screen_run(bool early_usb) touchscreen_set_mode(old_mode); #endif -#ifdef HAVE_LCD_BITMAP if(!early_usb) { font_enable_all(); @@ -331,7 +307,6 @@ void gui_usb_screen_run(bool early_usb) /* Reload playlist */ playlist_resume(); } -#endif FOR_NB_SCREENS(i) { diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index fad3255cdb..db58b5d72d 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -54,9 +54,7 @@ #include "statusbar.h" #include "appevents.h" #include "panic.h" -#ifdef HAVE_LCD_BITMAP #include "language.h" -#endif #include "statusbar-skinned.h" #include "skin_engine/skin_engine.h" #include "debug.h" @@ -68,7 +66,6 @@ struct viewport_stack_item bool enabled; }; -#ifdef HAVE_LCD_BITMAP static void viewportmanager_redraw(unsigned short id, void* data); static int theme_stack_top[NB_SCREENS]; /* the last item added */ @@ -218,16 +215,10 @@ static bool is_theme_enabled(enum screen_type screen) int top = theme_stack_top[screen]; return theme_stack[screen][top].enabled; } -#endif /* HAVE_LCD_BITMAP */ int viewport_get_nb_lines(const struct viewport *vp) { -#ifdef HAVE_LCD_BITMAP return vp->height/font_get(vp->font)->height; -#else - (void)vp; - return 2; -#endif } static void viewportmanager_redraw(unsigned short id, void* data) @@ -235,31 +226,21 @@ static void viewportmanager_redraw(unsigned short id, void* data) (void)id; FOR_NB_SCREENS(i) { -#ifdef HAVE_LCD_BITMAP if (is_theme_enabled(i)) sb_skin_update(i, NULL != data); -#else - (void)data; - gui_statusbar_draw(&statusbars.statusbars[i], NULL, NULL); -#endif } } void viewportmanager_init() { -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) { theme_stack_top[i] = -1; /* the next call fixes this to 0 */ /* We always want the theme enabled by default... */ viewportmanager_theme_enable(i, true, NULL); } -#else - add_event(GUI_EVENT_ACTIONUPDATE, viewportmanager_redraw); -#endif } -#ifdef HAVE_LCD_BITMAP void viewportmanager_theme_changed(const int which) { if (which & THEME_LANGUAGE) @@ -296,7 +277,6 @@ static void set_default_align_flags(struct viewport *vp) vp->flags |= VP_FLAG_ALIGN_RIGHT; } -#endif /* HAVE_LCD_BITMAP */ #endif /* __PCTOOL__ */ void viewport_set_fullscreen(struct viewport *vp, @@ -307,7 +287,6 @@ void viewport_set_fullscreen(struct viewport *vp, vp->width = screens[screen].lcdwidth; vp->height = screens[screen].lcdheight; -#ifdef HAVE_LCD_BITMAP #ifndef __PCTOOL__ set_default_align_flags(vp); #endif @@ -331,13 +310,12 @@ void viewport_set_fullscreen(struct viewport *vp, vp->bg_pattern = LCD_REMOTE_DEFAULT_BG; } #endif -#endif } void viewport_set_defaults(struct viewport *vp, const enum screen_type screen) { -#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) +#if !defined(__PCTOOL__) struct viewport *sbs_area = NULL; if (!is_theme_enabled(screen)) { @@ -349,13 +327,11 @@ void viewport_set_defaults(struct viewport *vp, if (sbs_area) *vp = *sbs_area; else -#endif /* HAVE_LCD_BITMAP */ +#endif /* !__PCTOOL__ */ viewport_set_fullscreen(vp, screen); } -#ifdef HAVE_LCD_BITMAP - int get_viewport_default_colour(enum screen_type screen, bool fgcolour) { (void)screen; (void)fgcolour; @@ -392,5 +368,3 @@ int get_viewport_default_colour(enum screen_type screen, bool fgcolour) return 0; #endif /* LCD_DEPTH > 1 || LCD_REMOTE_DEPTH > 1 */ } - -#endif diff --git a/apps/gui/viewport.h b/apps/gui/viewport.h index c4b90aa64c..683c36fe76 100644 --- a/apps/gui/viewport.h +++ b/apps/gui/viewport.h @@ -53,7 +53,6 @@ int get_viewport_default_colour(enum screen_type screen, bool fgcolour); */ void viewportmanager_init(void) INIT_ATTR; -#ifdef HAVE_LCD_BITMAP void viewportmanager_theme_enable(enum screen_type screen, bool enable, struct viewport *viewport); /* Force will cause a redraw even if the theme was previously and @@ -69,8 +68,6 @@ bool viewport_point_within_vp(const struct viewport *vp, const int x, const int y); #endif -#endif - #endif /* __PCTOOL__ */ #endif /* __VIEWPORT_H__ */ diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 82321ff945..8d0453385b 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -39,9 +39,7 @@ #include "storage.h" #include "screens.h" #include "playlist.h" -#ifdef HAVE_LCD_BITMAP #include "icons.h" -#endif #include "lang.h" #include "bookmark.h" #include "misc.h" @@ -87,7 +85,6 @@ static void track_info_callback(unsigned short id, void *param); char* wps_default_skin(enum screen_type screen) { static char *skin_buf[NB_SCREENS] = { -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH > 1 "%X(d)\n" #endif @@ -97,10 +94,6 @@ char* wps_default_skin(enum screen_type screen) "%al%pc/%pt%ar[%pp:%pe]\n" "%fbkBit %?fv %?iv<%(id3v%iv%)|%(no id3%)>\n" "%pb\n%pm\n", -#else - "%s%pp/%pe: %?it<%it|%fn> - %?ia<%ia|%d(2)> - %?id<%id|%d(1)>\n" - "%pc%?ps<*|/>%pt\n", -#endif #ifdef HAVE_REMOTE_LCD #if LCD_REMOTE_DEPTH > 1 "%X(d)\n" diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index 45638b7076..1a1645047a 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -112,9 +112,7 @@ static void gui_yesno_draw(struct gui_yesno * yn) if(line_shift+3 <= vp_lines) line_shift++; display->puts(0, line_shift, str(LANG_CONFIRM_WITH_BUTTON)); -#ifdef HAVE_LCD_BITMAP display->puts(0, line_shift+1, str(LANG_CANCEL_WITH_ANY)); -#endif } #endif display->update_viewport(); diff --git a/apps/keyboard.h b/apps/keyboard.h index a76b49834e..e3ee0b05d0 100644 --- a/apps/keyboard.h +++ b/apps/keyboard.h @@ -25,8 +25,6 @@ int kbd_input(char* buffer, int buflen, unsigned short *kbd); -#ifdef HAVE_LCD_BITMAP int load_kbd(unsigned char* filename); -#endif #endif diff --git a/apps/lang/SOURCES b/apps/lang/SOURCES index 4c34ea7f6f..276d1bff1c 100644 --- a/apps/lang/SOURCES +++ b/apps/lang/SOURCES @@ -39,7 +39,6 @@ ukrainian.lang vlaams.lang wallisertitsch.lang walon.lang -#ifdef HAVE_LCD_BITMAP /* Not for the Player */ arabic.lang chinese-simp.lang chinese-trad.lang @@ -47,4 +46,3 @@ hindi.lang japanese.lang korean.lang thai.lang -#endif /* HAVE_LCD_BITMAP */ diff --git a/apps/language.c b/apps/language.c index 715f83f672..7fe1258dea 100644 --- a/apps/language.c +++ b/apps/language.c @@ -26,9 +26,7 @@ #include "lang.h" #include "debug.h" #include "string.h" -#ifdef HAVE_LCD_BITMAP #include "viewport.h" -#endif /* The following header is generated by the build system and only defines MAX_LANGUAGE_SIZE to be the size of the largest currently available diff --git a/apps/logfdisp.c b/apps/logfdisp.c index 0c5f63e8dc..b139f30ac7 100644 --- a/apps/logfdisp.c +++ b/apps/logfdisp.c @@ -36,15 +36,14 @@ #include "action.h" #include "splash.h" -#ifdef HAVE_LCD_BITMAP int compute_nb_lines(int w, struct font* font) { int i, nb_lines; int cur_x, delta_x; - + if(logfindex == 0 && !logfwrap) return 0; - + if(logfwrap) i = logfindex; else @@ -209,7 +208,6 @@ bool logfdisplay(void) return false; } -#endif /* HAVE_LCD_BITMAP */ bool logfdump(void) { diff --git a/apps/main.c b/apps/main.c index 4f468fa65b..e1eccc0fa9 100644 --- a/apps/main.c +++ b/apps/main.c @@ -167,9 +167,7 @@ int main(void) screens[i].clear_display(); screens[i].update(); } -#ifdef HAVE_LCD_BITMAP list_init(); -#endif tree_gui_init(); /* Keep the order of this 3 * Must be done before any code uses the multi-screen API */ @@ -280,7 +278,6 @@ static void init_tagcache(void) talk_number(tagcache_get_max_commit_step(), true); } #endif -#ifdef HAVE_LCD_BITMAP if (lang_is_rtl()) { splashf(0, "[%d/%d] %s", ret, tagcache_get_max_commit_step(), @@ -291,12 +288,6 @@ static void init_tagcache(void) splashf(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), ret, tagcache_get_max_commit_step()); } -#else - lcd_double_height(false); - lcd_putsf(0, 1, " DB [%d/%d]", ret, - tagcache_get_max_commit_step()); - lcd_update(); -#endif clear = true; } sleep(HZ/4); @@ -326,11 +317,9 @@ static void init(void) #ifdef HAVE_REMOTE_LCD lcd_remote_init(); #endif -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) global_status.font_id[i] = FONT_SYSFIXED; font_init(); -#endif show_logo(); #ifndef USB_NONE usb_init(); @@ -428,11 +417,9 @@ static void init(void) #ifdef HAVE_REMOTE_LCD lcd_remote_init(); #endif -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) global_status.font_id[i] = FONT_SYSFIXED; font_init(); -#endif settings_reset(); @@ -507,14 +494,12 @@ static void init(void) CHART("callback_and_desc->desc); } -#ifdef HAVE_LCD_BITMAP + static enum themable_icons menu_get_icon(int selected_item, void * data) { const struct menu_item_ex *menu = (const struct menu_item_ex *)data; @@ -168,7 +166,6 @@ static enum themable_icons menu_get_icon(int selected_item, void * data) } return menu_icon; } -#endif static void init_menu_lists(const struct menu_item_ex *menu, struct gui_synclist *lists, int selected, bool callback, @@ -207,7 +204,6 @@ static void init_menu_lists(const struct menu_item_ex *menu, current_submenus_menu = (struct menu_item_ex *)menu; gui_synclist_init(lists,get_menu_item_name,(void*)menu,false,1, parent); -#ifdef HAVE_LCD_BITMAP if (menu->flags&MENU_HAS_DESC) { @@ -232,11 +228,6 @@ static void init_menu_lists(const struct menu_item_ex *menu, icon = Icon_Submenu_Entered; gui_synclist_set_title(lists, title, icon); gui_synclist_set_icon_callback(lists, global_settings.show_icons?menu_get_icon:NULL); -#else - (void)icon; - (void)title; - gui_synclist_set_icon_callback(lists, NULL); -#endif if(global_settings.talk_menu) gui_synclist_set_voice_callback(lists, talk_menu_item); gui_synclist_set_nb_items(lists,current_subitems_count); diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c index b7a44a3bb7..b4a3d3eb63 100644 --- a/apps/menus/display_menu.c +++ b/apps/menus/display_menu.c @@ -30,9 +30,7 @@ #include "menu.h" #include "tree.h" #include "list.h" -#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" -#endif #include "talk.h" #include "lcd.h" #ifdef HAVE_REMOTE_LCD @@ -187,16 +185,12 @@ MENUITEM_SETTING(brightness_item, &global_settings.brightness, NULL); #ifdef HAVE_LCD_CONTRAST MENUITEM_SETTING(contrast, &global_settings.contrast, NULL); #endif -#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_INVERT MENUITEM_SETTING(invert, &global_settings.invert, NULL); #endif #ifdef HAVE_LCD_FLIP MENUITEM_SETTING(flip_display, &global_settings.flip_display, flipdisplay_callback); #endif -#endif /* HAVE_LCD_BITMAP */ - - /* now the actual menu */ MAKE_MENU(lcd_settings,ID2P(LANG_LCD_MENU), @@ -226,14 +220,12 @@ MAKE_MENU(lcd_settings,ID2P(LANG_LCD_MENU), #ifdef HAVE_LCD_CONTRAST ,&contrast #endif -#ifdef HAVE_LCD_BITMAP # ifdef HAVE_LCD_INVERT ,&invert # endif # ifdef HAVE_LCD_FLIP ,&flip_display # endif -#endif /* HAVE_LCD_BITMAP */ ); /* LCD MENU */ /***********************************/ @@ -318,10 +310,8 @@ MAKE_MENU(lcd_remote_settings, ID2P(LANG_LCD_REMOTE_MENU), MENUITEM_SETTING_W_TEXT(scroll_speed, &global_settings.scroll_speed, ID2P(LANG_SCROLL), NULL); MENUITEM_SETTING(scroll_delay, &global_settings.scroll_delay, NULL); -#ifdef HAVE_LCD_BITMAP MENUITEM_SETTING_W_TEXT(scroll_step, &global_settings.scroll_step, ID2P(LANG_SCROLL_STEP_EXAMPLE), NULL); -#endif MENUITEM_SETTING(bidir_limit, &global_settings.bidir_limit, NULL); #ifdef HAVE_REMOTE_LCD MENUITEM_SETTING_W_TEXT(remote_scroll_speed, &global_settings.remote_scroll_speed, @@ -342,7 +332,6 @@ MENUITEM_SETTING(list_accel_start_delay, &global_settings.list_accel_start_delay, NULL); MENUITEM_SETTING(list_accel_wait, &global_settings.list_accel_wait, NULL); #endif /* HAVE_WHEEL_ACCELERATION */ -#ifdef HAVE_LCD_BITMAP static int screenscroll_callback(int action, const struct menu_item_ex *this_item, struct gui_synclist *this_list) @@ -360,21 +349,16 @@ static int screenscroll_callback(int action, MENUITEM_SETTING(offset_out_of_view, &global_settings.offset_out_of_view, screenscroll_callback); MENUITEM_SETTING(screen_scroll_step, &global_settings.screen_scroll_step, NULL); -#endif MENUITEM_SETTING(scroll_paginated, &global_settings.scroll_paginated, NULL); MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON, &scroll_speed, &scroll_delay, -#ifdef HAVE_LCD_BITMAP &scroll_step, -#endif &bidir_limit, #ifdef HAVE_REMOTE_LCD &remote_scroll_sets, #endif -#ifdef HAVE_LCD_BITMAP &offset_out_of_view, &screen_scroll_step, -#endif &scroll_paginated, #ifndef HAVE_WHEEL_ACCELERATION &list_accel_start_delay, &list_accel_wait @@ -386,7 +370,6 @@ MAKE_MENU(scroll_settings_menu, ID2P(LANG_SCROLL_MENU), 0, Icon_NOICON, /***********************************/ /* PEAK METER MENU */ -#ifdef HAVE_LCD_BITMAP static int peakmeter_callback(int action, const struct menu_item_ex *this_item, struct gui_synclist *this_list) @@ -570,7 +553,6 @@ MAKE_MENU(peak_meter_menu, ID2P(LANG_PM_MENU), NULL, Icon_NOICON, &histogram, #endif &peak_meter_scale_item, &peak_meter_min_item, &peak_meter_max_item); -#endif /* HAVE_LCD_BITMAP */ /* PEAK METER MENU */ /***********************************/ @@ -645,9 +627,7 @@ MAKE_MENU(display_menu, ID2P(LANG_DISPLAY), &lcd_remote_settings, #endif &scroll_settings_menu, -#ifdef HAVE_LCD_BITMAP &peak_meter_menu, -#endif &codepage_setting, #ifdef HAVE_TOUCHSCREEN &touchscreen_menu, diff --git a/apps/menus/exported_menus.h b/apps/menus/exported_menus.h index efb6341155..93cabb0f2e 100644 --- a/apps/menus/exported_menus.h +++ b/apps/menus/exported_menus.h @@ -31,9 +31,7 @@ extern const struct menu_item_ex #ifdef HAVE_RECORDING recording_settings, /* recording_menu.c */ recording_settings_menu, -#ifdef HAVE_LCD_BITMAP peak_meter_menu, /* also used from within recording_menu */ -#endif #endif sound_settings, /* sound_menu.c */ settings_menu_item, /* settings_menu.c */ diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c index c841de4e89..c3187afbef 100644 --- a/apps/menus/recording_menu.c +++ b/apps/menus/recording_menu.c @@ -32,10 +32,8 @@ #include "settings.h" #include "screens.h" #include "icons.h" -#ifdef HAVE_LCD_BITMAP #include "font.h" #include "scrollbar.h" -#endif #include "lang.h" #include "talk.h" #include "misc.h" @@ -601,9 +599,7 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS), #ifdef HAVE_AGC &agc_preset, &agc_cliptime, #endif -#ifdef HAVE_LCD_BITMAP &peak_meter_menu, -#endif &browse_recconfigs, &save_recpresets_item ); diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index e2b496a6f7..431600bbe1 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -187,9 +187,7 @@ MENUITEM_SETTING(interpret_numbers, &global_settings.interpret_numbers, fileview MENUITEM_SETTING(dirfilter, &global_settings.dirfilter, NULL); MENUITEM_SETTING(show_filename_ext, &global_settings.show_filename_ext, NULL); MENUITEM_SETTING(browse_current, &global_settings.browse_current, NULL); -#ifdef HAVE_LCD_BITMAP MENUITEM_SETTING(show_path_in_browser, &global_settings.show_path_in_browser, NULL); -#endif static int clear_start_directory(void) { strcpy(global_settings.start_directory, "/"); @@ -222,9 +220,7 @@ static int fileview_callback(int action, MAKE_MENU(file_menu, ID2P(LANG_FILE), 0, Icon_file_view_menu, &sort_case, &sort_dir, &sort_file, &interpret_numbers, &dirfilter, &show_filename_ext, &browse_current, -#ifdef HAVE_LCD_BITMAP &show_path_in_browser, -#endif &clear_start_directory_item ); /* FILE VIEW MENU */ @@ -312,14 +308,10 @@ MAKE_MENU(disk_menu, ID2P(LANG_DISK_MENU), 0, Icon_NOICON, /* Limits menu */ MENUITEM_SETTING(max_files_in_dir, &global_settings.max_files_in_dir, NULL); MENUITEM_SETTING(max_files_in_playlist, &global_settings.max_files_in_playlist, NULL); -#ifdef HAVE_LCD_BITMAP MENUITEM_SETTING(default_glyphs, &global_settings.glyphs_to_cache, NULL); -#endif MAKE_MENU(limits_menu, ID2P(LANG_LIMITS_MENU), 0, Icon_NOICON, &max_files_in_dir, &max_files_in_playlist -#ifdef HAVE_LCD_BITMAP ,&default_glyphs -#endif ); diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 138a2f928a..a160d4c298 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c @@ -159,7 +159,6 @@ MAKE_MENU(colors_settings, ID2P(LANG_COLORS_MENU), /* */ -#ifdef HAVE_LCD_BITMAP static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item, enum screen_type screen) { @@ -218,19 +217,16 @@ MAKE_MENU(bars_menu, ID2P(LANG_BARS_MENU), 0, Icon_NOICON, , &battery_display #endif ); -#endif /* HAVE_LCD_BITMAP */ /* */ /* BARS MENU */ /************************************/ -#ifdef HAVE_LCD_BITMAP static struct browse_folder_info fonts = {FONT_DIR, SHOW_FONT}; static struct browse_folder_info sbs = {SBS_DIR, SHOW_SBS}; #if CONFIG_TUNER static struct browse_folder_info fms = {WPS_DIR, SHOW_FMS}; #endif -#endif static struct browse_folder_info wps = {WPS_DIR, SHOW_WPS}; #ifdef HAVE_REMOTE_LCD static struct browse_folder_info rwps = {WPS_DIR, SHOW_RWPS}; @@ -268,7 +264,6 @@ int browse_folder(void *param) setting = global_settings.wps_file; lang_id = LANG_WHILE_PLAYING; break; -#ifdef HAVE_LCD_BITMAP case SHOW_FONT: ext = "fnt"; setting = global_settings.font_file; @@ -286,7 +281,6 @@ int browse_folder(void *param) lang_id = LANG_RADIOSCREEN; break; #endif /* CONFIG_TUNER */ -#endif #ifdef HAVE_REMOTE_LCD case SHOW_RWPS: ext = "rwps"; @@ -324,7 +318,6 @@ int browse_folder(void *param) return rockbox_browse(&browse); } -#ifdef HAVE_LCD_BITMAP MENUITEM_FUNCTION(browse_fonts, MENU_FUNC_USEPARAM, ID2P(LANG_CUSTOM_FONT), browse_folder, (void*)&fonts, NULL, Icon_Font); @@ -337,7 +330,6 @@ MENUITEM_FUNCTION(browse_fms, MENU_FUNC_USEPARAM, ID2P(LANG_RADIOSCREEN), browse_folder, (void*)&fms, NULL, Icon_Wps); #endif -#endif MENUITEM_FUNCTION(browse_wps, MENU_FUNC_USEPARAM, ID2P(LANG_WHILE_PLAYING), browse_folder, (void*)&wps, NULL, Icon_Wps); @@ -380,9 +372,7 @@ MENUITEM_SETTING(show_icons, &global_settings.show_icons, showicons_callback); MENUITEM_FUNCTION(browse_themes, MENU_FUNC_USEPARAM, ID2P(LANG_CUSTOM_THEME), browse_folder, (void*)&themes, NULL, Icon_Config); -#ifdef HAVE_LCD_BITMAP MENUITEM_SETTING(cursor_style, &global_settings.cursor_style, NULL); -#endif #if LCD_DEPTH > 1 MENUITEM_SETTING(sep_menu, &global_settings.list_separator_height, NULL); #endif @@ -390,9 +380,7 @@ MENUITEM_SETTING(sep_menu, &global_settings.list_separator_height, NULL); MAKE_MENU(theme_menu, ID2P(LANG_THEME_MENU), NULL, Icon_Wps, &browse_themes, -#ifdef HAVE_LCD_BITMAP &browse_fonts, -#endif &browse_wps, #ifdef HAVE_REMOTE_LCD &browse_rwps, @@ -403,9 +391,7 @@ MAKE_MENU(theme_menu, ID2P(LANG_THEME_MENU), &browse_rfms, #endif #endif -#ifdef HAVE_LCD_BITMAP &browse_sbs, -#endif #ifdef HAVE_REMOTE_LCD &browse_rsbs, #endif @@ -413,7 +399,6 @@ MAKE_MENU(theme_menu, ID2P(LANG_THEME_MENU), #ifdef HAVE_BACKDROP_IMAGE &clear_main_bd, #endif -#ifdef HAVE_LCD_BITMAP &bars_menu, &cursor_style, #if LCD_DEPTH > 1 @@ -422,5 +407,4 @@ MAKE_MENU(theme_menu, ID2P(LANG_THEME_MENU), #ifdef HAVE_LCD_COLOR &colors_settings, #endif -#endif /* HAVE_LCD_BITMAP */ ); diff --git a/apps/misc.c b/apps/misc.c index b20a0095ab..2d60ecca49 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -84,10 +84,10 @@ #if defined(HAVE_RECORDING) && !defined(__PCTOOL__) #include "recording.h" #endif -#if defined(HAVE_LCD_BITMAP) && !defined(__PCTOOL__) +#if !defined(__PCTOOL__) #include "bmp.h" #include "icons.h" -#endif /* End HAVE_LCD_BITMAP */ +#endif /* !__PCTOOL__ */ #include "bookmark.h" #include "wps.h" #include "playback.h" @@ -712,7 +712,6 @@ long default_event_handler(long event) int show_logo( void ) { -#ifdef HAVE_LCD_BITMAP char version[32]; int font_h, font_w; @@ -735,14 +734,6 @@ int show_logo( void ) #endif lcd_setfont(FONT_UI); -#else - char *rockbox = " ROCKbox!"; - - lcd_clear_display(); - lcd_double_height(true); - lcd_puts(0, 0, rockbox); - lcd_puts_scroll(0, 1, rbversion); -#endif lcd_update(); #ifdef HAVE_REMOTE_LCD @@ -1439,7 +1430,6 @@ int hex_to_rgb(const char* hex, int* color) } #endif /* HAVE_LCD_COLOR */ -#ifdef HAVE_LCD_BITMAP /* '0'-'3' are ASCII 0x30 to 0x33 */ #define is0123(x) (((x) & 0xfc) == 0x30) #if !defined(__PCTOOL__) || defined(CHECKWPS) @@ -1482,7 +1472,6 @@ int clamp_value_wrap(int value, int max, int min) return value; } #endif -#endif #ifndef __PCTOOL__ @@ -1494,25 +1483,21 @@ static int current_activity_top = 0; void push_current_activity(enum current_activity screen) { current_activity[current_activity_top++] = screen; -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) { skinlist_set_cfg(i, NULL); skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); } -#endif } void pop_current_activity(void) { current_activity_top--; -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) { skinlist_set_cfg(i, NULL); skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); } -#endif } enum current_activity get_current_activity(void) { diff --git a/apps/misc.h b/apps/misc.h index 10626dfaf4..c4057f4ebc 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -147,14 +147,12 @@ char* skip_whitespace(char* const str); */ char *strip_extension(char* buffer, int buffer_size, const char *filename); -#ifdef HAVE_LCD_BITMAP bool parse_color(enum screen_type screen, char *text, int *value); /* only used in USB HID and set_time screen */ #if defined(USB_ENABLE_HID) || (CONFIG_RTC != 0) int clamp_value_wrap(int value, int max, int min); #endif -#endif enum current_activity { ACTIVITY_UNKNOWN = 0, diff --git a/apps/onplay.c b/apps/onplay.c index 9226f32f4c..fd956167d3 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -49,9 +49,7 @@ #include "splash.h" #include "yesno.h" #include "menus/exported_menus.h" -#ifdef HAVE_LCD_BITMAP #include "icons.h" -#endif #include "sound_menu.h" #include "playlist_menu.h" #include "playlist_catalog.h" @@ -794,7 +792,6 @@ static int cat_playlist_callback(int action, return action; } -#ifdef HAVE_LCD_BITMAP static void draw_slider(void) { FOR_NB_SCREENS(i) @@ -809,9 +806,6 @@ static void draw_slider(void) screens[i].set_viewport(NULL); } } -#else -#define draw_slider() -#endif static void clear_display(bool update) { diff --git a/apps/playback.c b/apps/playback.c index e9014ee7b6..2d9747e86a 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -46,11 +46,9 @@ #include "tagcache.h" #endif -#ifdef HAVE_LCD_BITMAP #ifdef HAVE_ALBUMART #include "albumart.h" #endif -#endif #ifdef HAVE_PLAY_FREQ #include "pcm_mixer.h" diff --git a/apps/playlist.c b/apps/playlist.c index f903458004..34a3ea53d2 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -93,9 +93,7 @@ #include "thread.h" #include "usb.h" #include "filetypes.h" -#ifdef HAVE_LCD_BITMAP #include "icons.h" -#endif #include "system.h" #include "lang.h" diff --git a/apps/plugin.c b/apps/plugin.c index 4c0f44b2e8..4fe8544527 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -50,12 +50,10 @@ #include "power.h" #endif -#ifdef HAVE_LCD_BITMAP #include "scrollbar.h" #include "peakmeter.h" #include "bmp.h" #include "bidi.h" -#endif #ifdef USB_ENABLE_HID #include "usbstack/usb_hid.h" @@ -301,11 +299,9 @@ static const struct plugin_api rockbox_api = { #endif viewport_set_defaults, -#ifdef HAVE_LCD_BITMAP viewportmanager_theme_enable, viewportmanager_theme_undo, viewport_set_fullscreen, -#endif #ifdef HAVE_BACKLIGHT /* lcd backlight */ @@ -533,7 +529,7 @@ static const struct plugin_api rockbox_api = { #if (CONFIG_PLATFORM & PLATFORM_HOSTED) /* special simulator hooks */ -#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8 +#if LCD_DEPTH < 8 sim_lcd_ex_init, sim_lcd_ex_update_rect, #endif @@ -780,7 +776,6 @@ static const struct plugin_api rockbox_api = { remove_array_ptr, round_value_to_list32, -#ifdef HAVE_LCD_BITMAP read_bmp_file, read_bmp_fd, #ifdef HAVE_JPEG @@ -788,7 +783,6 @@ static const struct plugin_api rockbox_api = { read_jpeg_fd, #endif screen_dump_set_hook, -#endif show_logo, #ifdef HAVE_WHEEL_POSITION @@ -927,7 +921,6 @@ int plugin_load(const char* plugin, const void* parameter) touchscreen_set_mode(global_settings.touch_mode); #endif -#ifdef HAVE_LCD_BITMAP screen_helper_setfont(FONT_UI); #if LCD_DEPTH > 1 #ifdef HAVE_LCD_COLOR @@ -939,8 +932,6 @@ int plugin_load(const char* plugin, const void* parameter) #else /* LCD_DEPTH == 1 */ lcd_set_drawmode(DRMODE_SOLID); #endif /* LCD_DEPTH */ -#endif /* HAVE_LCD_BITMAP */ - #ifdef HAVE_REMOTE_LCD #if LCD_REMOTE_DEPTH > 1 diff --git a/apps/plugin.h b/apps/plugin.h index 41f65947a3..2fe40535ec 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -89,12 +89,10 @@ void* plugin_get_buffer(size_t *buffer_size); #include "settings.h" #include "timer.h" #include "playlist.h" -#ifdef HAVE_LCD_BITMAP #include "screendump.h" #include "scrollbar.h" #include "jpeg_load.h" #include "../recorder/bmp.h" -#endif #include "statusbar.h" #include "menu.h" #include "rbunicode.h" @@ -156,12 +154,12 @@ void* plugin_get_buffer(size_t *buffer_size); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 238 +#define PLUGIN_API_VERSION 239 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any new function which are "waiting" at the end of the function table) */ -#define PLUGIN_MIN_API_VERSION 238 +#define PLUGIN_MIN_API_VERSION 239 /* plugin return codes */ /* internal returns start at 0x100 to make exit(1..255) work */ @@ -331,13 +329,11 @@ struct plugin_api { void (*viewport_set_defaults)(struct viewport *vp, const enum screen_type screen); -#ifdef HAVE_LCD_BITMAP void (*viewportmanager_theme_enable)(enum screen_type screen, bool enable, struct viewport *viewport); void (*viewportmanager_theme_undo)(enum screen_type screen, bool force_redraw); void (*viewport_set_fullscreen)(struct viewport *vp, const enum screen_type screen); -#endif #ifdef HAVE_BACKLIGHT /* lcd backlight */ @@ -597,7 +593,7 @@ struct plugin_api { #if (CONFIG_PLATFORM & PLATFORM_HOSTED) /* special simulator hooks */ -#if defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8 +#if LCD_DEPTH < 8 void (*sim_lcd_ex_init)(unsigned long (*getpixel)(int, int)); void (*sim_lcd_ex_update_rect)(int x, int y, int width, int height); #endif @@ -900,7 +896,6 @@ struct plugin_api { int count, bool signd); -#ifdef HAVE_LCD_BITMAP int (*read_bmp_file)(const char* filename, struct bitmap *bm, int maxsize, int format, const struct custom_format *cformat); int (*read_bmp_fd)(int fd, struct bitmap *bm, int maxsize, @@ -912,7 +907,6 @@ struct plugin_api { int format, const struct custom_format *cformat); #endif void (*screen_dump_set_hook)(void (*hook)(int fh)); -#endif int (*show_logo)(void); #ifdef HAVE_WHEEL_POSITION diff --git a/apps/plugins/2048.c b/apps/plugins/2048.c index 5dd5a7e99f..08be294d88 100644 --- a/apps/plugins/2048.c +++ b/apps/plugins/2048.c @@ -41,10 +41,8 @@ #include "lib/pluginlib_actions.h" #include "lib/pluginlib_exit.h" -#ifdef HAVE_LCD_BITMAP #include "pluginbitmaps/_2048_background.h" #include "pluginbitmaps/_2048_tiles.h" -#endif /* some constants */ diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index 96ad535863..5d24bee8f6 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -79,7 +79,7 @@ wolf3d.c #endif #endif -#if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) +#if PLUGIN_BUFFER_SIZE <= 0x20000 #if CONFIG_KEYPAD != SANSA_M200_PAD \ && CONFIG_KEYPAD != HM60X_PAD @@ -92,7 +92,7 @@ chessbox.c goban.c pictureflow.c -#endif /* PLUGIN_BUFFER_SIZE <= 0x20000 && HAVE_LCD_BITMAP */ +#endif /* PLUGIN_BUFFER_SIZE <= 0x20000 */ #if defined(IRIVER_H100_SERIES) iriver_flash.c @@ -106,8 +106,6 @@ crypt_firmware.c metronome.c -#ifdef HAVE_LCD_BITMAP /* Not for the Archos Player */ - 2048.c /* Lua needs at least 160 KB to work in */ @@ -173,8 +171,6 @@ rockpaint.c rocklife.c -#endif /* HAVE_LCD_BITMAP */ - #if LCD_DEPTH > 1 /* non-mono bitmap targets */ matrix.c @@ -198,7 +194,6 @@ test_codec.c test_core_jpeg.c #endif test_disk.c -#ifdef HAVE_LCD_BITMAP test_fps.c test_gfx.c #if LCD_DEPTH < 4 && !defined(SIMULATOR) @@ -208,11 +203,8 @@ test_scanrate.c test_grey.c test_greylib_bitmap_scale.c #endif -#endif test_mem.c -#ifdef HAVE_LCD_BITMAP test_mem_jpeg.c -#endif #ifdef HAVE_LCD_COLOR test_resize.c #endif diff --git a/apps/plugins/SOURCES.app_build b/apps/plugins/SOURCES.app_build index 8cfc5881b2..ac9f01a896 100644 --- a/apps/plugins/SOURCES.app_build +++ b/apps/plugins/SOURCES.app_build @@ -28,7 +28,6 @@ test_codec.c test_core_jpeg.c #endif test_disk.c -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH < 4 && !defined(SIMULATOR) test_scanrate.c #endif @@ -36,11 +35,8 @@ test_scanrate.c test_grey.c test_greylib_bitmap_scale.c #endif -#endif test_mem.c -#ifdef HAVE_LCD_BITMAP test_mem_jpeg.c -#endif #ifdef HAVE_LCD_COLOR test_resize.c #endif diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index 2c8e43c837..8479e4b3dd 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -8,9 +8,6 @@ text_viewer clock #endif -/* For all targets with a bitmap display */ -#ifdef HAVE_LCD_BITMAP - /* color horizontal-stride LCDs */ #if defined(HAVE_LCD_COLOR) && \ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) @@ -55,8 +52,6 @@ zxbox #endif #endif -#endif /* HAVE_LCD_BITMAP */ - /* For all big enough colour screens, iriver H1x0 and iAudio M5 */ #if defined(HAVE_LCD_COLOR) && ( (LCD_HEIGHT >= 90 && LCD_WIDTH >=116) \ || (LCD_HEIGHT >= 96 && LCD_WIDTH >=75) ) \ diff --git a/apps/plugins/SUBDIRS.app_build b/apps/plugins/SUBDIRS.app_build index 95b5e64639..1fc283d6c4 100644 --- a/apps/plugins/SUBDIRS.app_build +++ b/apps/plugins/SUBDIRS.app_build @@ -8,7 +8,6 @@ */ lua lua_scripts -#ifdef HAVE_LCD_BITMAP #if PLUGIN_BUFFER_SIZE > 0x20000 fft @@ -20,8 +19,6 @@ reversi pictureflow #endif -#endif /* HAVE_LCD_BITMAP */ - /* For all the swcodec targets */ #if MEMORYSIZE > 2 /* we need a lot of RAM for instruments */ mikmod diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 37046af05b..3f9ecbc2b4 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c @@ -329,9 +329,7 @@ static bool exit_tsr(bool reenter) rb->lcd_clear_display(); rb->lcd_puts_scroll(0, 0, "Batt.Bench is currently running."); rb->lcd_puts_scroll(0, 1, "Press " BATTERY_OFF_TXT " to cancel the test"); -#ifdef HAVE_LCD_BITMAP rb->lcd_puts_scroll(0, 2, "Anything else will resume"); -#endif if(rb->global_settings->talk_menu) rb->talk_id(VOICE_BATTERY_BENCH_IS_ALREADY_RUNNING, true); rb->lcd_update(); @@ -488,11 +486,7 @@ static void thread(void) exit = true; break; case EV_EXIT: -#ifdef HAVE_LCD_BITMAP rb->splash(HZ, "Exiting battery_bench..."); -#else - rb->splash(HZ, "bench exit"); -#endif exit_reason = "plugin exit"; exit = true; break; @@ -516,7 +510,6 @@ static void thread(void) } -#ifdef HAVE_LCD_BITMAP typedef void (*plcdfunc)(int x, int y, const unsigned char *str); static void put_centered_str(const char* str, plcdfunc putsxy, int lcd_width, int line) @@ -525,7 +518,6 @@ static void put_centered_str(const char* str, plcdfunc putsxy, int lcd_width, in rb->lcd_getstringsize(str, &strwdt, &strhgt); putsxy((lcd_width - strwdt)/2, line*(strhgt), str); } -#endif enum plugin_status plugin_start(const void* parameter) { @@ -533,27 +525,20 @@ enum plugin_status plugin_start(const void* parameter) int button, fd; bool on = false; start_tick = *rb->current_tick; -#ifdef HAVE_LCD_BITMAP int i; const char *msgs[] = { "Battery Benchmark","Check file", BATTERY_LOG, "for more info", BATTERY_ON_TXT, BATTERY_OFF_TXT " - quit" }; -#endif rb->lcd_clear_display(); -#ifdef HAVE_LCD_BITMAP rb->lcd_clear_display(); rb->lcd_setfont(FONT_SYSFIXED); for (i = 0; i<(int)(sizeof(msgs)/sizeof(char *)); i++) put_centered_str(msgs[i],rb->lcd_putsxy,LCD_WIDTH,i+1); -#else - rb->lcd_puts_scroll(0, 0, "Batt.Bench."); - rb->lcd_puts_scroll(0, 1, "PLAY/STOP"); -#endif if(rb->global_settings->talk_menu) rb->talk_id(VOICE_BAT_BENCH_KEYS, true); rb->lcd_update(); - + #ifdef HAVE_REMOTE_LCD rb->lcd_remote_clear_display(); put_centered_str(msgs[0],rb->lcd_remote_putsxy,LCD_REMOTE_WIDTH,0); diff --git a/apps/plugins/bitmaps/mono/SOURCES b/apps/plugins/bitmaps/mono/SOURCES index ad8b951e45..e6a24b2bc5 100644 --- a/apps/plugins/bitmaps/mono/SOURCES +++ b/apps/plugins/bitmaps/mono/SOURCES @@ -1,5 +1,3 @@ -#ifdef HAVE_LCD_BITMAP - /* Bubbles */ #if (LCD_WIDTH == 112) && (LCD_HEIGHT == 64) bubbles_bubble.112x64x1.bmp @@ -59,7 +57,6 @@ mpegplayer_status_icons_16x16x1.bmp superdom_boarditems.160x128x1.bmp #endif -#endif /* HAVE_LCD_BITMAP */ #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) osx.dummy.bmp #endif diff --git a/apps/plugins/bitmaps/native/SOURCES b/apps/plugins/bitmaps/native/SOURCES index 22f82800a7..48eb18dfa4 100644 --- a/apps/plugins/bitmaps/native/SOURCES +++ b/apps/plugins/bitmaps/native/SOURCES @@ -1,5 +1,3 @@ -#ifdef HAVE_LCD_BITMAP - /* 2048 */ #define MIN(x,y) ((xlcd_set_drawmode(DRMODE_SOLID); } } -#else -#define show_pause_mode(enabled) rb->lcd_icon(ICON_PAUSE, enabled) -#endif static int run_timer(int nr) { diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c index 29d2ba2fc1..d2d831f81b 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c @@ -451,9 +451,6 @@ #endif #endif - -#ifdef HAVE_LCD_BITMAP - #define DIST (10 * MIN(LCD_HEIGHT, LCD_WIDTH) / 16) static int x_off = LCD_WIDTH/2; static int y_off = LCD_HEIGHT/2; @@ -486,16 +483,6 @@ static struct my_lcd *mylcd = &greyfuncs; #define ASPECT 256 /* = 1.00 */ #endif -#else /* !LCD_BITMAP */ - -#define MYLCD(fn) pgfx_ ## fn -#define DIST 9 -static int x_off = 10; -static int y_off = 7; -#define ASPECT 300 /* = 1.175 */ - -#endif /* !LCD_BITMAP */ - struct point_3D { long x, y, z; }; @@ -771,7 +758,6 @@ enum plugin_status plugin_start(const void* parameter) (void)(parameter); -#ifdef HAVE_LCD_BITMAP #if defined(USEGSLIB) gbuf = (unsigned char *)rb->plugin_get_buffer(&gbuf_size); if (!grey_init(gbuf, gbuf_size, GREY_BUFFERED, @@ -794,7 +780,6 @@ enum plugin_status plugin_start(const void* parameter) grey_setfont(FONT_SYSFIXED); #endif rb->lcd_setfont(FONT_SYSFIXED); -#endif atexit(cleanup); while(!quit) @@ -808,7 +793,6 @@ enum plugin_status plugin_start(const void* parameter) redraw = false; } -#ifdef HAVE_LCD_BITMAP if (t_disp > 0) { char buffer[30]; @@ -821,24 +805,6 @@ enum plugin_status plugin_start(const void* parameter) if (t_disp == 0) redraw = true; } -#else - if (t_disp > 0) - { - if (t_disp == DISP_TIME) - { - rb->lcd_puts(5, 0, axes[curr].label); - rb->lcd_putsf(5, 1, "%d %c", - paused ? axes[curr].angle : axes[curr].speed, - highspeed ? 'H' : ' '); - } - t_disp--; - if (t_disp == 0) - { - rb->lcd_clear_display(); - pgfx_display(0, 0); - } - } -#endif #ifdef USEGSLIB if (mode_switch) { diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c index 013e7a37bd..4f2bf6e992 100644 --- a/apps/plugins/disktidy.c +++ b/apps/plugins/disktidy.c @@ -343,10 +343,8 @@ static void tidy_lcd_status(const char *name) rb->lcd_clear_display(); rb->lcd_puts(0, 0, "Working ..."); rb->lcd_puts(0, 1, name); -#ifdef HAVE_LCD_BITMAP rb->lcd_putsf(0, 2, "Cleaned up %d items", run_stats.files_removed + run_stats.dirs_removed); -#endif rb->lcd_update(); } diff --git a/apps/plugins/flipit.c b/apps/plugins/flipit.c index 294bee8f5b..91d83e9291 100644 --- a/apps/plugins/flipit.c +++ b/apps/plugins/flipit.c @@ -534,8 +534,6 @@ static int spots[20]; static int toggle[20]; static int cursor_pos, moves; -#ifdef HAVE_LCD_BITMAP - #include "pluginbitmaps/flipit_cursor.h" #include "pluginbitmaps/flipit_tokens.h" @@ -595,8 +593,6 @@ static void draw_info_panel(void) GRID_TOP + 4*(TK_HEIGHT+TK_SPACE) + 2, s ); } -#endif /* LCD */ - /* clear the cursor where it is */ static inline void clear_cursor(void) { @@ -829,7 +825,6 @@ enum plugin_status plugin_start(const void* parameter) rb->splash(HZ, "FlipIt!"); -#ifdef HAVE_LCD_BITMAP /* print instructions */ rb->lcd_clear_display(); rb->lcd_setfont(FONT_SYSFIXED); @@ -909,7 +904,7 @@ enum plugin_status plugin_start(const void* parameter) #endif rb->lcd_update(); -#endif + rb->button_get_w_tmo(HZ*3); rb->lcd_clear_display(); diff --git a/apps/plugins/greyscale.c b/apps/plugins/greyscale.c index 70507d989c..c44b1f77c0 100644 --- a/apps/plugins/greyscale.c +++ b/apps/plugins/greyscale.c @@ -24,7 +24,7 @@ #include "plugin.h" #include "lib/helper.h" -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) +#if (LCD_DEPTH < 4) #include "lib/grey.h" @@ -372,5 +372,5 @@ enum plugin_status plugin_start(const void* parameter) return main(); } -#endif /* #ifdef HAVE_LCD_BITMAP */ +#endif /* #if LCD_DEPTH < 4 */ diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c index 26f8f47e8f..78f74568ca 100644 --- a/apps/plugins/jackpot.c +++ b/apps/plugins/jackpot.c @@ -30,7 +30,6 @@ const struct button_mapping* plugin_contexts[]={pla_main_ctx}; #define NB_PICTURES 9 #define NB_SLOTS 3 -#ifdef HAVE_LCD_BITMAP #define PICTURE_HEIGHT (BMPHEIGHT_jackpot_slots/(NB_PICTURES+1)) #if NB_SCREENS==1 #define PICTURE_ROTATION_STEPS PICTURE_HEIGHT @@ -55,7 +54,6 @@ const struct picture jackpot_pictures[]={ }; #define SLEEP_TIME (HZ/200) -#endif /* HAVE_LCD_BITMAP */ struct jackpot { diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index effc076eb7..545a754500 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES @@ -13,7 +13,7 @@ display_text.c strncpy.c stdio_compat.c -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) +#if (LCD_DEPTH < 4) grey_core.c grey_draw.c grey_parm.c @@ -23,7 +23,7 @@ grey_scroll.c grey_coldfire.S #endif -#endif /* HAVE_LCD_BITMAP && LCD_DEPTH < 4 */ +#endif /* LCD_DEPTH < 4 */ #if (CONFIG_PLATFORM & PLATFORM_NATIVE) overlay.c @@ -33,8 +33,6 @@ overlay.c profile_plugin.c #endif -#ifdef HAVE_LCD_BITMAP - #ifdef CPU_ARM pluginlib_jpeg_idct_arm.S #endif @@ -65,8 +63,6 @@ pluginlib_albumart.c kbd_helper.c -#endif /* HAVE_LCD_BITMAP */ - #ifdef HAVE_TOUCHSCREEN pluginlib_touchscreen.c #endif diff --git a/apps/plugins/lib/checkbox.h b/apps/plugins/lib/checkbox.h index 81a26e15ba..d4318f2305 100644 --- a/apps/plugins/lib/checkbox.h +++ b/apps/plugins/lib/checkbox.h @@ -21,11 +21,7 @@ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP - /* * Print a checkbox */ void checkbox(int x, int y, int width, int height, bool checked); - -#endif diff --git a/apps/plugins/lib/display_text.c b/apps/plugins/lib/display_text.c index 90712a649f..5f37b736df 100644 --- a/apps/plugins/lib/display_text.c +++ b/apps/plugins/lib/display_text.c @@ -39,9 +39,7 @@ static bool wait_key_press(void) bool display_text(unsigned short words, char** text, struct style_text* style, struct viewport* vp_text, bool wait_key) { -#ifdef HAVE_LCD_BITMAP int prev_drawmode; -#endif #ifdef HAVE_LCD_COLOR int standard_fgcolor; #endif @@ -55,10 +53,8 @@ bool display_text(unsigned short words, char** text, struct style_text* style, vp_height = vp_text->height; } rb->screens[SCREEN_MAIN]->set_viewport(vp_text); -#ifdef HAVE_LCD_BITMAP prev_drawmode = rb->lcd_get_drawmode(); rb->lcd_set_drawmode(DRMODE_SOLID); -#endif #ifdef HAVE_LCD_COLOR standard_fgcolor = rb->lcd_get_foreground(); #endif @@ -121,11 +117,9 @@ bool display_text(unsigned short words, char** text, struct style_text* style, #endif rb->lcd_putsxy(x, y, text[i]); /* underline the word */ -#ifdef HAVE_LCD_BITMAP if (style[style_index].flags&TEXT_UNDERLINE) { rb->lcd_hline(x, x+width, y+height-1); } -#endif #ifdef HAVE_LCD_COLOR rb->lcd_set_foreground(standard_fgcolor); #endif @@ -134,9 +128,7 @@ bool display_text(unsigned short words, char** text, struct style_text* style, x += width + space_w; } rb->screens[SCREEN_MAIN]->update_viewport(); -#ifdef HAVE_LCD_BITMAP rb->lcd_set_drawmode(prev_drawmode); -#endif if (wait_key) { if (wait_key_press()) diff --git a/apps/plugins/lib/grey.h b/apps/plugins/lib/grey.h index 63e896bfb6..0e064f46b2 100644 --- a/apps/plugins/lib/grey.h +++ b/apps/plugins/lib/grey.h @@ -29,7 +29,7 @@ #include "plugin.h" -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) +#if (LCD_DEPTH < 4) /* The greyscale lib uses 8 bit brightness values natively on input. */ #define GREY_BRIGHTNESS(y) (y) @@ -201,5 +201,5 @@ struct _grey_info /* Global variable, defined in the plugin */ extern struct _grey_info _grey_info; -#endif /* HAVE_LCD_BITMAP && (LCD_DEPTH < 4) */ +#endif /* (LCD_DEPTH < 4) */ #endif /* __GREY_H__ */ diff --git a/apps/plugins/lib/highscore.c b/apps/plugins/lib/highscore.c index ff7a166222..3aae955bfc 100644 --- a/apps/plugins/lib/highscore.c +++ b/apps/plugins/lib/highscore.c @@ -119,7 +119,6 @@ bool highscore_would_update(int score, struct highscore *scores, return (num_scores > 0) && (score > scores[num_scores-1].score); } -#ifdef HAVE_LCD_BITMAP #define MARGIN 5 void highscore_show(int position, struct highscore *scores, int num_scores, bool show_level) @@ -179,37 +178,3 @@ void highscore_show(int position, struct highscore *scores, int num_scores, rb->lcd_set_foreground(fgcolor); #endif } -#else -struct scoreinfo { - struct highscore *scores; - int position; - bool show_level; -}; -static const char* get_score(int selected, void * data, - char * buffer, size_t buffer_len) -{ - struct scoreinfo *scoreinfo = (struct scoreinfo *) data; - int len; - len = rb->snprintf(buffer, buffer_len, "%c%d) %4d", - (scoreinfo->position == selected?'*':' '), - selected+1, scoreinfo->scores[selected].score); - - if (scoreinfo->show_level) - rb->snprintf(buffer + len, buffer_len - len, " %d", - scoreinfo->scores[selected].level); - return buffer; -} - -void highscore_show(int position, struct highscore *scores, int num_scores, - bool show_level) -{ - struct simplelist_info info; - struct scoreinfo scoreinfo = {scores, position, show_level}; - rb->simplelist_info_init(&info, "High Scores", num_scores, &scoreinfo); - if (position >= 0) - info.selection = position; - info.hide_selection = true; - info.get_name = get_score; - rb->simplelist_show_list(&info); -} -#endif /* HAVE_LCD_BITMAP */ diff --git a/apps/plugins/lib/mylcd.h b/apps/plugins/lib/mylcd.h index a543d60890..47bdec9e2c 100644 --- a/apps/plugins/lib/mylcd.h +++ b/apps/plugins/lib/mylcd.h @@ -35,7 +35,7 @@ * lib/grey.h should be included before including this * header. For bitmap LCD's, defaults to rb->lcd_XXXX otherwise. */ -#if defined (HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) && defined(__GREY_H__) +#if (LCD_DEPTH < 4) && defined(__GREY_H__) #define MYLCD_CFG_GREYLIB /* using greylib */ #define mylcd_(fn) grey_##fn #define myxlcd_(fn) grey_##fn @@ -51,7 +51,8 @@ #define MYLCD_DEFAULT_FG GREY_BLACK #define MYLCD_DEFAULT_BG GREY_WHITE -#elif defined (HAVE_LCD_BITMAP) +#else + #define MYLCD_CFG_RB_XLCD /* using standard (X)LCD routines */ #define mylcd_(fn) rb->lcd_##fn #define myxlcd_(fn) xlcd_##fn @@ -67,18 +68,11 @@ #define MYLCD_DEFAULT_FG LCD_DEFAULT_FG #define MYLCD_DEFAULT_BG LCD_DEFAULT_BG -#else -#error Configuration not supported! Did you forget to include the correct lib header? #endif /* end LCD type selection */ /* Update functions */ #define mylcd_update mylcd_(update) -#ifdef HAVE_LCD_BITMAP #define mylcd_update_rect mylcd_(update_rect) -#else -static inline void mylcd_update_rect(int x, int y, int w, int h) - { (void)x; (void)y; (void)w; (void)h; pgfx_update(); } -#endif /* HAVE_LCD_BITMAP */ /* Update functions - unbuffered : special handling for these * It is desirable to still evaluate arguments even if there will @@ -104,7 +98,6 @@ static inline void mylcd_ub_update_rect(int x, int y, int w, int h) #define mylcd_set_drawmode mylcd_(set_drawmode) #define mylcd_get_drawmode mylcd_(get_drawmode) -#ifdef HAVE_LCD_BITMAP #define mylcd_set_foreground mylcd_(set_foreground) #define mylcd_get_foreground mylcd_(get_foreground) #define mylcd_set_background mylcd_(set_background) @@ -112,7 +105,6 @@ static inline void mylcd_ub_update_rect(int x, int y, int w, int h) #define mylcd_set_drawinfo mylcd_(set_drawinfo) #define mylcd_setfont mylcd_(setfont) #define mylcd_getstringsize mylcd_(getstringsize) -#endif /* HAVE_LCD_BITMAP */ /* Whole display */ #define mylcd_clear_display mylcd_(clear_display) @@ -131,57 +123,43 @@ static inline void mylcd_ub_update_rect(int x, int y, int w, int h) /* Filled Primitives */ #define mylcd_fillrect mylcd_(fillrect) -#ifdef HAVE_LCD_BITMAP #define mylcd_filltriangle myxlcd_(filltriangle) -#endif /* HAVE_LCD_BITMAP */ /* Bitmaps */ #define mylcd_mono_bitmap_part mylcd_(mono_bitmap_part) #define mylcd_mono_bitmap mylcd_(mono_bitmap) -#ifdef HAVE_LCD_BITMAP #define mylcd_gray_bitmap_part myxlcd_(gray_bitmap_part) #define mylcd_gray_bitmap myxlcd_(gray_bitmap) #if 0 /* possible, but not implemented in greylib */ #define mylcd_color_bitmap_part myxlcd_(color_bitmap_part) #define mylcd_color_bitmap myxlcd_(color_bitmap) #endif -#endif /* HAVE_LCD_BITMAP */ /* Bitmaps - unbuffered */ -#ifdef HAVE_LCD_BITMAP #define mylcd_ub_gray_bitmap_part myxlcd_ub_(gray_bitmap_part) #define mylcd_ub_gray_bitmap myxlcd_ub_(gray_bitmap) -#endif /* HAVE_LCD_BITMAP */ /* Text */ /* lcd_putsxyofs is static'ed in the core for now on color */ -#ifdef HAVE_LCD_BITMAP #define mylcd_putsxyofs mylcd_(putsxyofs) #define mylcd_putsxy mylcd_(putsxy) -#endif /* HAVE_LCD_BITMAP */ /* Scrolling */ -#ifdef HAVE_LCD_BITMAP #define mylcd_scroll_left myxlcd_(scroll_left) #define mylcd_scroll_right myxlcd_(scroll_right) #define mylcd_scroll_up myxlcd_(scroll_up) #define mylcd_scroll_down myxlcd_(scroll_down) -#endif /* HAVE_LCD_BITMAP */ /* Scrolling - unbuffered */ -#ifdef HAVE_LCD_BITMAP #define mylcd_ub_scroll_left myxlcd_ub_(scroll_left) #define mylcd_ub_scroll_right myxlcd_ub_(scroll_right) #define mylcd_ub_scroll_up myxlcd_ub_(scroll_up) #define mylcd_ub_scroll_down myxlcd_ub_(scroll_down) -#endif /* HAVE_LCD_BITMAP */ /* Viewports */ -#ifdef HAVE_LCD_BITMAP #define mylcd_clear_viewport mylcd_(clear_viewport) #define mylcd_set_viewport mylcd_(set_viewport) #define mylcd_viewport_set_fullscreen mylcd_viewport_(set_fullscreen) -#endif /* HAVE_LCD_BITMAP */ #endif /* MYLCD_H */ diff --git a/apps/plugins/lib/pluginlib_bmp.h b/apps/plugins/lib/pluginlib_bmp.h index be0cfd9091..f0540988de 100644 --- a/apps/plugins/lib/pluginlib_bmp.h +++ b/apps/plugins/lib/pluginlib_bmp.h @@ -37,7 +37,7 @@ int save_bmp_file( char* filename, struct bitmap *bm ); */ void simple_resize_bitmap(struct bitmap *src, struct bitmap *dst); -#if defined(HAVE_LCD_BITMAP) && (LCD_DEPTH < 4) +#if (LCD_DEPTH < 4) /** Same as simple_resize_bitmap except this is for use with greylib. */ diff --git a/apps/plugins/lib/simple_viewer.c b/apps/plugins/lib/simple_viewer.c index 4c05ee68c5..0b554e054d 100644 --- a/apps/plugins/lib/simple_viewer.c +++ b/apps/plugins/lib/simple_viewer.c @@ -27,10 +27,8 @@ struct view_info { -#ifdef HAVE_LCD_BITMAP struct font* pf; struct viewport scrollbar_vp; /* viewport for scrollbar */ -#endif struct viewport vp; const char *title; const char *text; /* displayed text */ @@ -89,15 +87,12 @@ static void calc_line_count(struct view_info *info) { const char *ptr = info->text; int i = 0; -#ifdef HAVE_LCD_BITMAP bool scrollbar = false; -#endif while (*ptr) { ptr = get_next_line(ptr, info); i++; -#ifdef HAVE_LCD_BITMAP if (!scrollbar && i > info->display_lines) { ptr = info->text; @@ -111,7 +106,6 @@ static void calc_line_count(struct view_info *info) info->scrollbar_vp.x = info->vp.width; scrollbar = true; } -#endif } info->line_count = i; } @@ -144,12 +138,8 @@ static int init_view(struct view_info *info, const char *title, const char *text) { rb->viewport_set_defaults(&info->vp, SCREEN_MAIN); -#ifdef HAVE_LCD_BITMAP info->pf = rb->font_get(FONT_UI); info->display_lines = info->vp.height / info->pf->height; -#else - info->display_lines = info->vp.height; -#endif info->title = title; info->text = text; @@ -157,7 +147,6 @@ static int init_view(struct view_info *info, info->line = 0; info->start = 0; -#ifdef HAVE_LCD_BITMAP /* no title for small screens. */ if (info->display_lines < 4) { @@ -169,7 +158,6 @@ static int init_view(struct view_info *info, info->vp.y += info->pf->height; info->vp.height -= info->pf->height; } -#endif calc_line_count(info); return 0; @@ -177,11 +165,7 @@ static int init_view(struct view_info *info, static void draw_text(struct view_info *info) { -#ifdef HAVE_LCD_BITMAP #define OUTPUT_SIZE LCD_WIDTH+1 -#else -#define OUTPUT_SIZE LCD_WIDTH*3+1 -#endif static char output[OUTPUT_SIZE]; const char *text, *ptr; int max_show, line; @@ -190,14 +174,12 @@ static void draw_text(struct view_info *info) /* clear screen */ display->clear_display(); -#ifdef HAVE_LCD_BITMAP /* display title. */ if(info->title) { display->set_viewport(NULL); display->puts(0, 0, info->title); } -#endif max_show = MIN(info->line_count - info->line, info->display_lines); text = info->text + info->start; @@ -215,7 +197,6 @@ static void draw_text(struct view_info *info) display->puts(0, line, output); text = ptr; } -#ifdef HAVE_LCD_BITMAP if (info->line_count > info->display_lines) { display->set_viewport(&info->scrollbar_vp); @@ -224,7 +205,6 @@ static void draw_text(struct view_info *info) info->line_count, info->line, info->line + max_show, VERTICAL); } -#endif display->set_viewport(NULL); display->update(); diff --git a/apps/plugins/lib/xlcd.h b/apps/plugins/lib/xlcd.h index abd5cff62b..963c7c4831 100644 --- a/apps/plugins/lib/xlcd.h +++ b/apps/plugins/lib/xlcd.h @@ -26,8 +26,6 @@ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP - void xlcd_filltriangle(int x1, int y1, int x2, int y2, int x3, int y3); void xlcd_filltriangle_screen(struct screen* display, int x1, int y1, int x2, int y2, int x3, int y3); @@ -54,6 +52,5 @@ void xlcd_scroll_right(int count); void xlcd_scroll_up(int count); void xlcd_scroll_down(int count); -#endif /* HAVE_LCD_BITMAP */ #endif /* __XLCD_H__ */ diff --git a/apps/plugins/lib/xlcd_core.c b/apps/plugins/lib/xlcd_core.c index 87e73b5485..47875a51a9 100644 --- a/apps/plugins/lib/xlcd_core.c +++ b/apps/plugins/lib/xlcd_core.c @@ -24,8 +24,5 @@ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP #include "xlcd.h" -#endif /* HAVE_LCD_BITMAP */ - diff --git a/apps/plugins/lib/xlcd_draw.c b/apps/plugins/lib/xlcd_draw.c index 311782c21f..25ef7518a1 100644 --- a/apps/plugins/lib/xlcd_draw.c +++ b/apps/plugins/lib/xlcd_draw.c @@ -24,7 +24,6 @@ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP #include "xlcd.h" /* sort the given coordinates by increasing x value */ @@ -486,5 +485,3 @@ void xlcd_color_bitmap(const unsigned char *src, int x, int y, int width, #endif /* HAVE_LCD_COLOR */ #endif /* LCD_DEPTH >= 8 */ - -#endif /* HAVE_LCD_BITMAP */ diff --git a/apps/plugins/logo.c b/apps/plugins/logo.c index 60bed3b826..984a65aa34 100644 --- a/apps/plugins/logo.c +++ b/apps/plugins/logo.c @@ -29,7 +29,6 @@ static const struct button_mapping *plugin_contexts[] #endif }; -#ifdef HAVE_LCD_BITMAP #define DISPLAY_WIDTH LCD_WIDTH #define DISPLAY_HEIGHT LCD_HEIGHT #define RAND_SCALE 5 @@ -48,19 +47,6 @@ static const struct button_mapping *plugin_contexts[] #define LOGO_WIDTH BMPWIDTH_rockboxlogo #define LOGO_HEIGHT BMPHEIGHT_rockboxlogo -#else /* !LCD_BITMAP */ -#define DISPLAY_WIDTH 55 -#define DISPLAY_HEIGHT 14 -#define RAND_SCALE 2 -#define LOGO_WIDTH 16 -#define LOGO_HEIGHT 7 -#define LOGO rockbox16x7 -const unsigned char rockbox16x7[] = { - 0x47, 0x18, 0xa6, 0xd8, 0x66, 0xde, 0xb7, 0x9b, - 0x76, 0xdb, 0x26, 0xdb, 0x66, 0xde, -}; -#endif /* !LCD_BITMAP */ - /* We use PLA */ #define LP_QUIT PLA_EXIT #define LP_QUIT2 PLA_CANCEL @@ -88,7 +74,6 @@ enum plugin_status plugin_start(const void* parameter) { dy = rb->rand()%(2*RAND_SCALE+1) - RAND_SCALE; while (1) { -#ifdef HAVE_LCD_BITMAP rb->lcd_clear_display(); rb->lcd_bitmap((const fb_data*)LOGO, x, y, LOGO_WIDTH, LOGO_HEIGHT); #ifdef REMOTE_LOGO @@ -98,12 +83,6 @@ enum plugin_status plugin_start(const void* parameter) { (y * (REMOTE_HEIGHT - REMOTE_LOGO_HEIGHT)) / (DISPLAY_HEIGHT - LOGO_HEIGHT), REMOTE_LOGO_WIDTH, REMOTE_LOGO_HEIGHT); #endif -#else - pgfx_clear_display(); - pgfx_mono_bitmap(LOGO, x % 5, y, LOGO_WIDTH, LOGO_HEIGHT); - cpos = x / 5; -#endif - x += dx; if (x < 0) { dx = -dx; @@ -124,18 +103,9 @@ enum plugin_status plugin_start(const void* parameter) { y = DISPLAY_HEIGHT - LOGO_HEIGHT; } -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); #ifdef REMOTE_LOGO rb->lcd_remote_update(); -#endif -#else - if (cpos != old_cpos) { - rb->lcd_clear_display(); - pgfx_display(cpos, 0); - old_cpos = cpos; - } - pgfx_update(); #endif rb->sleep(HZ/timer); diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index 1b017942a9..2c7742fd94 100644 --- a/apps/plugins/lrcplayer.c +++ b/apps/plugins/lrcplayer.c @@ -71,14 +71,12 @@ struct preferences { unsigned active_color; unsigned inactive_color; #endif -#ifdef HAVE_LCD_BITMAP bool wrap; bool wipe; bool active_one_line; int align; /* 0: left, 1: center, 2: right */ bool statusbar_on; bool display_title; -#endif bool display_time; bool backlight_on; @@ -118,16 +116,12 @@ static struct lrc_info { bool loaded_lrc; bool changed_lrc; bool too_many_lines; /* true if nlrcline >= max_lrclines after calc pos */ -#ifdef HAVE_LCD_BITMAP bool wipe; /* false if lyrics is unsynched */ -#endif } current; static char temp_buf[MAX(MAX_LINE_LEN,MAX_PATH)]; -#ifdef HAVE_LCD_BITMAP static int uifont = -1; static int font_ui_height = 1; static struct viewport vp_info[NB_SCREENS]; -#endif static struct viewport vp_lyrics[NB_SCREENS]; #define AUDIO_PAUSE (current.audio_status & AUDIO_STATUS_PAUSE) @@ -221,11 +215,9 @@ static int lrc_set_time(const char *title, const char *unit, long *pval, { /* draw cursor */ buffer[p_end-1] = 0; -#ifdef HAVE_LCD_BITMAP rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); rb->lcd_putsxy(x, y*(1+LST_OFF_Y), &buffer[p_start]); rb->lcd_set_drawmode(DRMODE_SOLID); -#endif } rb->lcd_update(); int button = pluginlib_getaction(TIMEOUT_BLOCK, lst_contexts, ARRAYLEN(lst_contexts)); @@ -394,19 +386,16 @@ static int format_time_tag(char *buf, long t) /* find start of next line */ static const char *lrc_skip_space(const char *str) { -#ifdef HAVE_LCD_BITMAP if (prefs.wrap) { while (*str && *str != '\n' && isspace(*str)) str++; } -#endif if (*str == '\n') str++; return str; } -#ifdef HAVE_LCD_BITMAP static bool isbrchr(const unsigned char *str, int len) { const unsigned char *p = "!,-.:;? 、。!,.:;?―"; @@ -422,7 +411,6 @@ static bool isbrchr(const unsigned char *str, int len) } return false; } -#endif /* calculate how many lines is needed to display and store it. * create cache if there is enough space in lrc_buffer. */ @@ -431,11 +419,9 @@ static struct lrc_brpos *calc_brpos(struct lrc_line *lrc_line, int i) struct lrc_brpos *lrc_brpos; struct lrc_word *lrc_word; int nlrcbrpos = 0, max_lrcbrpos; -#ifdef HAVE_LCD_BITMAP uifont = rb->screens[0]->getuifont(); struct font* pf = rb->font_get(uifont); unsigned short ch; -#endif struct snap { int count, width; int nword; @@ -1559,7 +1545,6 @@ static void display_state(void) str = "No lyrics"; } -#ifdef HAVE_LCD_BITMAP const char *info = NULL; if (AUDIO_PLAY && prefs.display_title) @@ -1605,13 +1590,6 @@ static void display_state(void) display->update_viewport(); display->set_viewport(NULL); } -#else - /* there is no place to display title or artist. */ - rb->lcd_clear_display(); - if (str) - rb->lcd_puts_scroll(0, 0, str); - rb->lcd_update(); -#endif /* HAVE_LCD_BITMAP */ } static void display_time(void) @@ -1619,7 +1597,6 @@ static void display_time(void) rb->snprintf(temp_buf, MAX_LINE_LEN, "%ld:%02ld/%ld:%02ld", current.elapsed/60000, (current.elapsed/1000)%60, current.length/60000, (current.length)/1000%60); -#ifdef HAVE_LCD_BITMAP int y = (prefs.display_title? font_ui_height:0); FOR_NB_SCREENS(i) { @@ -1634,16 +1611,11 @@ static void display_time(void) display->setfont(uifont); display->set_viewport(NULL); } -#else - rb->lcd_puts(0, 0, temp_buf); - rb->lcd_update(); -#endif /* HAVE_LCD_BITMAP */ } /******************************* * Display lyrics *******************************/ -#ifdef HAVE_LCD_BITMAP static inline void set_to_default(struct screen *display) { #if (LCD_DEPTH > 1) @@ -1817,7 +1789,6 @@ static int display_lrc_line(struct lrc_line *lrc_line, int ypos, int i) set_to_default(display); return ypos; } -#endif /* HAVE_LCD_BITMAP */ static void display_lrcs(void) { @@ -1848,7 +1819,7 @@ static void display_lrcs(void) /* display current line at the center of the viewport */ display->set_viewport(&vp_lyrics[i]); display->clear_viewport(); -#ifdef HAVE_LCD_BITMAP + struct lrc_line *lrc_line; int y, ypos = 0, nblines = vp_lyrics[i].height/font_ui_height; y = (nblines-1)/2; @@ -1895,7 +1866,7 @@ static void display_lrcs(void) } if (!lrc_line && ypos < vp_lyrics[i].height) display->putsxy(0, ypos, "[end]"); -#endif /* HAVE_LCD_BITMAP */ + display->update_viewport(); display->set_viewport(NULL); } @@ -2191,7 +2162,6 @@ static void load_or_save_settings(bool save) { TYPE_INT, 0, 0xffffff, { .int_p = &prefs.inactive_color }, "inactive color", NULL }, #endif -#ifdef HAVE_LCD_BITMAP { TYPE_BOOL, 0, 1, { .bool_p = &prefs.wrap }, "wrap", NULL }, { TYPE_BOOL, 0, 1, { .bool_p = &prefs.wipe }, "wipe", NULL }, { TYPE_BOOL, 0, 1, { .bool_p = &prefs.active_one_line }, @@ -2201,7 +2171,6 @@ static void load_or_save_settings(bool save) "statusbar on", NULL }, { TYPE_BOOL, 0, 1, { .bool_p = &prefs.display_title }, "display title", NULL }, -#endif { TYPE_BOOL, 0, 1, { .bool_p = &prefs.display_time }, "display time", NULL }, { TYPE_BOOL, 0, 1, { .bool_p = &prefs.backlight_on }, @@ -2223,14 +2192,12 @@ static void load_or_save_settings(bool save) prefs.active_color = rb->lcd_get_foreground(); prefs.inactive_color = LCD_LIGHTGRAY; #endif -#ifdef HAVE_LCD_BITMAP prefs.wrap = true; prefs.wipe = true; prefs.active_one_line = false; prefs.align = 1; /* center */ prefs.statusbar_on = false; prefs.display_title = true; -#endif prefs.display_time = true; prefs.backlight_on = false; #ifdef LRC_SUPPORT_ID3 @@ -2252,10 +2219,8 @@ static void load_or_save_settings(bool save) static bool lrc_theme_menu(void) { enum { -#ifdef HAVE_LCD_BITMAP LRC_MENU_STATUSBAR, LRC_MENU_DISP_TITLE, -#endif LRC_MENU_DISP_TIME, #ifdef HAVE_LCD_COLOR LRC_MENU_INACTIVE_COLOR, @@ -2267,9 +2232,7 @@ static bool lrc_theme_menu(void) bool exit = false, usb = false; MENUITEM_STRINGLIST(menu, "Theme Settings", NULL, -#ifdef HAVE_LCD_BITMAP "Show Statusbar", "Display Title", -#endif "Display Time", #ifdef HAVE_LCD_COLOR "Inactive Colour", @@ -2280,14 +2243,12 @@ static bool lrc_theme_menu(void) { switch (rb->do_menu(&menu, &selected, NULL, false)) { -#ifdef HAVE_LCD_BITMAP case LRC_MENU_STATUSBAR: usb = rb->set_bool("Show Statusbar", &prefs.statusbar_on); break; case LRC_MENU_DISP_TITLE: usb = rb->set_bool("Display Title", &prefs.display_title); break; -#endif case LRC_MENU_DISP_TIME: usb = rb->set_bool("Display Time", &prefs.display_time); break; @@ -2312,7 +2273,6 @@ static bool lrc_theme_menu(void) return usb; } -#ifdef HAVE_LCD_BITMAP static bool lrc_display_menu(void) { enum { @@ -2362,7 +2322,6 @@ static bool lrc_display_menu(void) return usb; } -#endif /* HAVE_LCD_BITMAP */ static bool lrc_lyrics_menu(void) { @@ -2489,9 +2448,7 @@ static int lrc_menu(void) { enum { LRC_MENU_THEME, -#ifdef HAVE_LCD_BITMAP LRC_MENU_DISPLAY, -#endif LRC_MENU_LYRICS, LRC_MENU_PLAYBACK, #ifdef LRC_DEBUG @@ -2504,9 +2461,7 @@ static int lrc_menu(void) MENUITEM_STRINGLIST(menu, "Lrcplayer Menu", NULL, "Theme Settings", -#ifdef HAVE_LCD_BITMAP "Display Settings", -#endif "Lyrics Settings", "Playback Control", #ifdef LRC_DEBUG @@ -2524,11 +2479,9 @@ static int lrc_menu(void) case LRC_MENU_THEME: usb = lrc_theme_menu(); break; -#ifdef HAVE_LCD_BITMAP case LRC_MENU_DISPLAY: usb = lrc_display_menu(); break; -#endif case LRC_MENU_LYRICS: usb = lrc_lyrics_menu(); break; @@ -2720,40 +2673,27 @@ static int lrc_main(void) long id3_timeout = 0; bool update_display_state = true; -#ifdef HAVE_LCD_BITMAP /* y offset of vp_lyrics */ int h = (prefs.display_title?font_ui_height:0)+ (prefs.display_time?SYSFONT_HEIGHT*2:0); -#endif FOR_NB_SCREENS(i) { -#ifdef HAVE_LCD_BITMAP rb->viewportmanager_theme_enable(i, prefs.statusbar_on, &vp_info[i]); vp_lyrics[i] = vp_info[i]; vp_lyrics[i].flags &= ~VP_FLAG_ALIGNMENT_MASK; vp_lyrics[i].y += h; vp_lyrics[i].height -= h; -#else - rb->viewport_set_defaults(&vp_lyrics[i], i); - if (prefs.display_time) - { - vp_lyrics[i].y += 1; /* time */ - vp_lyrics[i].height -= 1; - } -#endif } if (prefs.backlight_on) backlight_ignore_timeout(); -#ifdef HAVE_LCD_BITMAP - /* in case settings that may affect break position + /* in case settings that may affect break position * are changed (statusbar_on and wrap). */ if (!current.too_many_lines) calc_brpos(NULL, 0); -#endif while (ret == LRC_GOTO_MAIN) { @@ -2819,12 +2759,10 @@ static int lrc_main(void) } if (update_display_state) { -#ifdef HAVE_LCD_BITMAP if (current.type == TXT || current.type == ID3_USLT) current.wipe = false; else current.wipe = prefs.wipe; -#endif display_state(); update_display_state = false; } @@ -2839,10 +2777,9 @@ static int lrc_main(void) ret = handle_button(); } -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) rb->viewportmanager_theme_undo(i, false); -#endif + if (prefs.backlight_on) backlight_use_settings(); @@ -2857,10 +2794,8 @@ enum plugin_status plugin_start(const void* parameter) /* initialize settings. */ load_or_save_settings(false); -#ifdef HAVE_LCD_BITMAP uifont = rb->screens[0]->getuifont(); font_ui_height = rb->font_get(uifont)->height; -#endif lrc_buffer = rb->plugin_get_buffer(&lrc_buffer_size); lrc_buffer = ALIGN_UP(lrc_buffer, 4); /* 4 bytes aligned */ diff --git a/apps/plugins/lua/rocklib_img.c b/apps/plugins/lua/rocklib_img.c index 7b3ed9d2d7..1266d60310 100644 --- a/apps/plugins/lua/rocklib_img.c +++ b/apps/plugins/lua/rocklib_img.c @@ -1331,10 +1331,8 @@ static inline struct viewport* opt_viewport(lua_State *L, vp->y = check_tablevalue(L, "y", narg); vp->width = check_tablevalue(L, "width", narg); vp->height = check_tablevalue(L, "height", narg); -#ifdef HAVE_LCD_BITMAP vp->font = check_tablevalue(L, "font", narg); vp->drawmode = check_tablevalue(L, "drawmode", narg); -#endif #if LCD_DEPTH > 1 vp->fg_pattern = (unsigned int) check_tablevalue(L, "fg_pattern", narg); vp->bg_pattern = (unsigned int) check_tablevalue(L, "bg_pattern", narg); @@ -1379,7 +1377,6 @@ RB_WRAP(font_getstringsize) return 3; } -#ifdef HAVE_LCD_BITMAP RB_WRAP(lcd_framebuffer) { rli_wrap(L, rb->lcd_framebuffer, LCD_WIDTH, LCD_HEIGHT); @@ -1620,8 +1617,6 @@ RB_WRAP(lcd_drawpixel) return 0; } -#endif /* defined(LCD_BITMAP) */ - #ifdef HAVE_LCD_COLOR RB_WRAP(lcd_rgbpack) { @@ -1690,7 +1685,6 @@ static const luaL_Reg rocklib_img[] = R(set_viewport), R(clear_viewport), R(font_getstringsize), -#ifdef HAVE_LCD_BITMAP R(lcd_framebuffer), R(lcd_setfont), R(gui_scrollbar_draw), @@ -1721,7 +1715,6 @@ static const luaL_Reg rocklib_img[] = R(lcd_vline), R(lcd_drawpixel), -#endif /*HAVE_LCD_BITMAP*/ #ifdef HAVE_LCD_COLOR R(lcd_rgbpack), R(lcd_rgbunpack), diff --git a/apps/plugins/lua/rocklib_img.h b/apps/plugins/lua/rocklib_img.h index 496bc8dd93..90b24f1ad1 100644 --- a/apps/plugins/lua/rocklib_img.h +++ b/apps/plugins/lua/rocklib_img.h @@ -22,9 +22,7 @@ #ifndef _ROCKLIB_IMG_H_ #define _ROCKLIB_IMG_H_ -#ifdef HAVE_LCD_BITMAP #define RLI_EXTENDED -#endif LUALIB_API int (luaopen_rock_img) (lua_State *L); diff --git a/apps/plugins/metronome.c b/apps/plugins/metronome.c index eec8a92e78..a6b4181df2 100644 --- a/apps/plugins/metronome.c +++ b/apps/plugins/metronome.c @@ -840,12 +840,9 @@ static void metronome_draw(struct screen* display, int state) int textlen = display->lcdwidth / display->getcharwidth(); ps = part; display->clear_display(); -#ifdef HAVE_LCD_BITMAP display->setfont(FONT_SYSFIXED); -#endif switch(state) { -#ifdef HAVE_LCD_BITMAP case 0: if(sound_paused) { @@ -876,49 +873,17 @@ static void metronome_draw(struct screen* display, int state) case 3: display->puts((textlen-3)/2,0, "o.O"); break; -#else /* Much simpler on 2-line text display, but same thing. */ - case 1: - if((beat+1) % 2 == 0) - beat1 = '/'; - else - beat1 = '\\'; - break; - case 2: - if((beat+1) % 2 == 0) - beat2 = '/'; - else - beat2 = '\\'; - break; - case 3: - beat1 = '.'; - break; -#endif } if(track_mode) { -#ifdef HAVE_LCD_BITMAP /* One line in several. */ rb->snprintf( buffer, sizeof(buffer), "%u/%u@%u V%d" , ps->beats_per_bar, ps->base_beat , bpm, rb->global_settings->volume ); display->puts(0,4, buffer); -#else - /* Just two short lines with integrated beat indicator. */ - rb->snprintf( buffer, sizeof(buffer), "%c %u/%u@%u" - , beat1 - , ps->beats_per_bar, ps->base_beat - , bpm ); - display->puts(0,0, buffer); - /* Simulator prints format %+02d ... real Rockbox doesn't. */ - rb->snprintf( buffer, sizeof(buffer), "%c V%d" - , beat2 - , rb->global_settings->volume ); - display->puts(0,1, buffer); -#endif /* HAVE_LCD_BITMAP */ -#ifdef HAVE_LCD_BITMAP /* Would it hurt to draw a 3rd line to 2-line display? I guess there are 3-line displays out there. */ if(ps->label && rb->strlen(ps->label)) @@ -935,13 +900,11 @@ static void metronome_draw(struct screen* display, int state) rb->snprintf( buffer, sizeof(buffer), "P%u/%u: B%u/_+%u" , part->id+1, parts, bar+1, beat+1 ); display->puts(0, 5, buffer); -#endif /* HAVE_LCD_BITMAP */ } else /* track mode */ { -#ifdef HAVE_LCD_BITMAP if(display->screen_type==SCREEN_MAIN) { #ifdef MET_SYNC @@ -960,32 +923,18 @@ static void metronome_draw(struct screen* display, int state) #endif } #endif -#endif /* HAVE_LCD_BITMAP */ -#ifdef HAVE_LCD_BITMAP rb->snprintf( buffer, sizeof(buffer), "BPM: %d Vol: %d" , bpm, rb->global_settings->volume ); display->puts(0,3, buffer); -#else - rb->snprintf( buffer, sizeof(buffer), "%c BPM: %d " - , beat1, bpm ); - display->puts(0,0, buffer); - rb->snprintf( buffer, sizeof(buffer), "%c Vol: %d" - , beat2, rb->global_settings->volume ); - display->puts(0,1, buffer); -#endif /* HAVE_LCD_BITMAP */ -#ifdef HAVE_LCD_BITMAP display->hline(0, 111, 12); if(sound_paused) display->puts(0,2,"start: hold select"); else display->puts(0,2,"stop : cancel"); -#endif /* HAVE_LCD_BITMAP */ } /* !track_mode */ -#ifdef HAVE_LCD_BITMAP display->setfont(FONT_UI); -#endif /* HAVE_LCD_BITMAP */ display->update(); } diff --git a/apps/plugins/mosaique.c b/apps/plugins/mosaique.c index 28ea9efd93..caf5346dc5 100644 --- a/apps/plugins/mosaique.c +++ b/apps/plugins/mosaique.c @@ -23,7 +23,6 @@ #include "lib/pluginlib_actions.h" -#ifdef HAVE_LCD_BITMAP #define GFX_X (LCD_WIDTH/2-1) #define GFX_Y (LCD_HEIGHT/2-1) #if LCD_WIDTH != LCD_HEIGHT @@ -33,12 +32,6 @@ #define GFX_WIDTH GFX_X #define GFX_HEIGHT (4*GFX_Y/5) #endif -#else -#define GFX_X 9 -#define GFX_Y 6 -#define GFX_WIDTH 9 -#define GFX_HEIGHT 6 -#endif /* this set the context to use with PLA */ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; diff --git a/apps/plugins/otp.c b/apps/plugins/otp.c index 2da1ef83f5..4d302563fb 100644 --- a/apps/plugins/otp.c +++ b/apps/plugins/otp.c @@ -1007,9 +1007,7 @@ static void show_help(void) rb->lcd_set_background(LCD_BLACK); #endif -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont(FONT_UI); -#endif static char *help_text[] = { "One-Time Password Manager", "", "Introduction", "", diff --git a/apps/plugins/pegbox.c b/apps/plugins/pegbox.c index c3d38997eb..4622d2a10e 100644 --- a/apps/plugins/pegbox.c +++ b/apps/plugins/pegbox.c @@ -1462,7 +1462,6 @@ static int pegbox_main(struct game_context* pb) enum plugin_status plugin_start(const void* parameter) { (void)parameter; -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont(FONT_SYSFIXED); #if LCD_DEPTH > 1 rb->lcd_set_backdrop(NULL); @@ -1484,7 +1483,6 @@ enum plugin_status plugin_start(const void* parameter) pegbox_main(&pb); configfile_save(CONFIG_FILE_NAME,config,2,0); rb->lcd_setfont(FONT_UI); -#endif /* HAVE_LCD_BITMAP */ return PLUGIN_OK; } diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 4c172ff108..9db9572d43 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -411,10 +411,8 @@ enum plugin_status plugin_start(const void* parameter) return PLUGIN_OK; } -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) rb->viewportmanager_theme_enable(i, true, NULL); -#endif rb->gui_synclist_init(&properties_lists, &get_props, &dps, false, 2, NULL); rb->gui_synclist_set_title(&properties_lists, rb->str(its_a_dir ? LANG_PROPERTIES_DIRECTORY_PROPERTIES : LANG_PROPERTIES_FILE_PROPERTIES), NOICON); @@ -448,10 +446,8 @@ enum plugin_status plugin_start(const void* parameter) } } -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) rb->viewportmanager_theme_undo(i, false); -#endif return usb? PLUGIN_USB_CONNECTED: PLUGIN_OK; } diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c index c7968c3e20..31c626e267 100644 --- a/apps/plugins/rockblox.c +++ b/apps/plugins/rockblox.c @@ -532,8 +532,6 @@ #define BOARD_WIDTH 10 -#ifdef HAVE_LCD_BITMAP - #define BOARD_HEIGHT 20 #if (LCD_WIDTH == 640) && (LCD_HEIGHT == 480) @@ -757,6 +755,9 @@ #define LEVEL_X 58 #define LINES_Y 62 #define LINES_X 58 + +#else +#error "lcd screen size not defined!" #endif #ifndef LEVEL_X @@ -769,10 +770,6 @@ extern const fb_data rockblox_background[]; -#else -#error "lcd screen size not defined!" -#endif - #ifndef HIGHSCORE_SPACE #define HIGHSCORE_SPACE " " #endif @@ -974,7 +971,6 @@ static void init_board (void) /* show the score, level and lines */ static void show_details (void) { -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH >= 2 rb->lcd_set_foreground (LCD_BLACK); rb->lcd_set_background (LCD_WHITE); @@ -982,7 +978,6 @@ static void show_details (void) rb->lcd_putsxyf (LABEL_X, SCORE_Y, "%d", rockblox_status.score); rb->lcd_putsxyf (LEVEL_X, LEVEL_Y, "%d", rockblox_status.level); rb->lcd_putsxyf (LINES_X, LINES_Y, "%d", rockblox_status.lines); -#endif } #ifdef HIGH_SCORE_Y @@ -1050,9 +1045,7 @@ static void init_rockblox (bool resume) tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); -#ifdef HAVE_LCD_BITMAP rb->lcd_bitmap (rockblox_background, 0, 0, LCD_WIDTH, LCD_HEIGHT); -#endif if (!resume) { rockblox_status.level = 1; @@ -1149,7 +1142,6 @@ static void refresh_board (void) for (j = 0; j < BOARD_HEIGHT; j++) { block = rockblox_status.board[j][i]; if (block != EMPTY_BLOCK) { -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH >= 2 /* middle drawing */ rb->lcd_set_foreground (figures[block].color[1]); @@ -1177,7 +1169,6 @@ static void refresh_board (void) rb->lcd_hline (BOARD_X + i * BLOCK_WIDTH + 1, BOARD_X + (i + 1) * BLOCK_WIDTH - 1, BOARD_Y + (j + 1) * BLOCK_HEIGHT - 1); -#endif } } @@ -1194,7 +1185,6 @@ static void refresh_board (void) + rockblox_status.cx; y = getRelativeY (rockblox_status.cf, i, rockblox_status.co) + ghost_y; -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH >= 2 /* middle drawing */ rb->lcd_set_foreground (ghost_colors[rockblox_status.cf][0]); @@ -1221,7 +1211,6 @@ static void refresh_board (void) rb->lcd_hline (BOARD_X + x * BLOCK_WIDTH + 1, BOARD_X + (x + 1) * BLOCK_WIDTH - 1, BOARD_Y + (y + 1) * BLOCK_HEIGHT - 1); -#endif } /* draw current piece */ @@ -1231,7 +1220,6 @@ static void refresh_board (void) + rockblox_status.cx; y = getRelativeY (rockblox_status.cf, i, rockblox_status.co) + rockblox_status.cy; -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH >= 2 /* middle drawing */ rb->lcd_set_foreground (figures[rockblox_status.cf].color[1]); @@ -1258,7 +1246,6 @@ static void refresh_board (void) rb->lcd_hline (BOARD_X + x * BLOCK_WIDTH + 1, BOARD_X + (x + 1) * BLOCK_WIDTH - 1, BOARD_Y + (y + 1) * BLOCK_HEIGHT - 1); -#endif } mylcd_update (); @@ -1301,7 +1288,6 @@ static void draw_next_block (void) for (i = 0; i < 4; i++) { rx = getRelativeX (rockblox_status.nf, i, 0) + 2; ry = getRelativeY (rockblox_status.nf, i, 0) + 2; -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH >= 2 rb->lcd_set_foreground (figures[rockblox_status.nf].color[1]); /* middle drawing */ #endif @@ -1326,7 +1312,6 @@ static void draw_next_block (void) rb->lcd_hline (PREVIEW_X + rx * BLOCK_WIDTH + 1, PREVIEW_X + (rx + 1) * BLOCK_WIDTH - 1, PREVIEW_Y + (ry + 1) * BLOCK_HEIGHT - 1); -#endif } } @@ -1428,18 +1413,14 @@ static bool rockblox_help(void) LAST_STYLE_ITEM }; -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont(FONT_UI); -#endif #ifdef HAVE_LCD_COLOR rb->lcd_set_background(LCD_BLACK); rb->lcd_set_foreground(LCD_WHITE); #endif if (display_text(ARRAYLEN(help_text), help_text, formation, NULL, true)) return true; -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont(FONT_SYSFIXED); -#endif return false; } @@ -1699,15 +1680,7 @@ enum plugin_status plugin_start (const void *parameter) rb->lcd_set_backdrop(NULL); #endif -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont (FONT_SYSFIXED); -#else - if (!pgfx_init(4, 2)) - { - rb->splash(HZ*2, "Old LCD :("); - return PLUGIN_OK; - } -#endif /* Turn off backlight timeout */ backlight_ignore_timeout(); diff --git a/apps/plugins/search.c b/apps/plugins/search.c index ff7be343f6..f27d2045b1 100644 --- a/apps/plugins/search.c +++ b/apps/plugins/search.c @@ -125,11 +125,7 @@ static bool search_init(const char* file){ fdw = rb->open(resultfile, O_WRONLY|O_CREAT|O_TRUNC, 0666); if (fdw < 0) { -#ifdef HAVE_LCD_BITMAP rb->splash(HZ, "Failed to create result file!"); -#else - rb->splash(HZ, "File creation failed"); -#endif rb->close(fd); return false; } diff --git a/apps/plugins/searchengine/searchengine.h b/apps/plugins/searchengine/searchengine.h index 090adb7051..00bedd816b 100644 --- a/apps/plugins/searchengine/searchengine.h +++ b/apps/plugins/searchengine/searchengine.h @@ -25,20 +25,12 @@ #include extern int w, h, y; -#ifdef HAVE_LCD_BITMAP #define PUTS(str) do { \ rb->lcd_putsxy(1, y, str); \ rb->lcd_getstringsize(str, &w, &h); \ y += h + 1; \ } while (0); \ rb->lcd_update() -#else -#define PUTS(str) do { \ - rb->lcd_puts(0, y, str); \ - y = (y + 1) % 2; \ -} while (0); \ -rb->lcd_update() -#endif void *my_malloc(size_t size); void setmallocpos(void *pointer); diff --git a/apps/plugins/shortcuts/shortcuts_view.c b/apps/plugins/shortcuts/shortcuts_view.c index c9a4655341..cfc9d8d746 100644 --- a/apps/plugins/shortcuts/shortcuts_view.c +++ b/apps/plugins/shortcuts/shortcuts_view.c @@ -223,20 +223,16 @@ enum plugin_status plugin_start(const void* void_parameter) return PLUGIN_OK; } -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) rb->viewportmanager_theme_enable(i, true, NULL); -#endif do { /* Display a menu to choose between the entries */ leave_loop = list_sc(); } while (!leave_loop); -#ifdef HAVE_LCD_BITMAP FOR_NB_SCREENS(i) rb->viewportmanager_theme_undo(i, false); -#endif return usb_connected ? PLUGIN_USB_CONNECTED : PLUGIN_OK; } diff --git a/apps/plugins/snow.c b/apps/plugins/snow.c index f05d3c2a44..10b41c972b 100644 --- a/apps/plugins/snow.c +++ b/apps/plugins/snow.c @@ -22,15 +22,9 @@ #include "lib/mylcd.h" #include "lib/pluginlib_actions.h" -#ifdef HAVE_LCD_BITMAP #define NUM_PARTICLES (LCD_WIDTH * LCD_HEIGHT / 72) #define SNOW_HEIGHT LCD_HEIGHT #define SNOW_WIDTH LCD_WIDTH -#else -#define NUM_PARTICLES 10 -#define SNOW_HEIGHT 14 -#define SNOW_WIDTH 20 -#endif static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; @@ -40,7 +34,6 @@ static const struct button_mapping *plugin_contexts[] = { pla_main_ctx }; static short particles[NUM_PARTICLES][2]; -#ifdef HAVE_LCD_BITMAP #if LCD_WIDTH >= 160 #define FLAKE_WIDTH 5 static const unsigned char flake[] = {0x0a,0x04,0x1f,0x04,0x0a}; @@ -48,7 +41,6 @@ static const unsigned char flake[] = {0x0a,0x04,0x1f,0x04,0x0a}; #define FLAKE_WIDTH 3 static const unsigned char flake[] = {0x02,0x07,0x02}; #endif -#endif static bool particle_exists(int particle) { @@ -83,12 +75,8 @@ static void snow_move(void) for (i=0; ilcd_fillrect(particles[i][0],particles[i][1], FLAKE_WIDTH,FLAKE_WIDTH); -#else - pgfx_drawpixel(particles[i][0],particles[i][1]); -#endif mylcd_set_drawmode(DRMODE_SOLID); #ifdef HAVE_REMOTE_LCD if (particles[i][0] <= LCD_REMOTE_WIDTH @@ -116,12 +104,8 @@ static void snow_move(void) break; } if (particle_exists(i)) -#ifdef HAVE_LCD_BITMAP rb->lcd_mono_bitmap(flake,particles[i][0],particles[i][1], FLAKE_WIDTH,FLAKE_WIDTH); -#else - pgfx_drawpixel(particles[i][0],particles[i][1]); -#endif #ifdef HAVE_REMOTE_LCD if (particles[i][0] <= LCD_REMOTE_WIDTH && particles[i][1] <= LCD_REMOTE_HEIGHT) { diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c index ff23911336..0a29a7aa30 100644 --- a/apps/plugins/stats.c +++ b/apps/plugins/stats.c @@ -56,7 +56,6 @@ static void update_screen(void) rb->lcd_remote_clear_display(); #endif -#ifdef HAVE_LCD_BITMAP rb->snprintf(buf, sizeof(buf), "Total Files: %d", files); prn(buf,0); rb->snprintf(buf, sizeof(buf), "Audio: %d", audiofiles); @@ -71,12 +70,6 @@ static void update_screen(void) prn(buf,5); rb->snprintf(buf, sizeof(buf), "Max files in Dir: %d", largestdir); prn(buf,6); -#else - rb->snprintf(buf, sizeof(buf), "Files:%5d", files); - prn(buf,0); - rb->snprintf(buf, sizeof(buf), "Dirs: %5d", dirs); - prn(buf,1); -#endif rb->lcd_update(); #ifdef HAVE_REMOTE_LCD diff --git a/apps/plugins/stopwatch.c b/apps/plugins/stopwatch.c index c3fa3e15dd..6fca37d06f 100644 --- a/apps/plugins/stopwatch.c +++ b/apps/plugins/stopwatch.c @@ -23,11 +23,7 @@ -#ifdef HAVE_LCD_BITMAP #define TIMER_Y 1 -#else -#define TIMER_Y 0 -#endif #define LAP_Y TIMER_Y+1 #define MAX_LAPS 64 @@ -481,14 +477,10 @@ enum plugin_status plugin_start(const void* parameter) (void)parameter; -#ifdef HAVE_LCD_BITMAP int h; rb->lcd_setfont(FONT_UI); rb->lcd_getstringsize("M", NULL, &h); lines = (LCD_HEIGHT / h) - (LAP_Y); -#else - lines = 1; -#endif load_stopwatch(); diff --git a/apps/plugins/test_mem.c b/apps/plugins/test_mem.c index 66d6248dcc..f17ea7a05d 100644 --- a/apps/plugins/test_mem.c +++ b/apps/plugins/test_mem.c @@ -206,10 +206,8 @@ enum plugin_status plugin_start(const void* parameter) #endif int count = 0; -#ifdef HAVE_LCD_BITMAP rb->lcd_setfont(FONT_SYSFIXED); -#endif - + rb->screens[0]->clear_display(); TEST_MEM_PRINTF("patience, may take some seconds..."); rb->screens[0]->update(); diff --git a/apps/plugins/test_viewports.c b/apps/plugins/test_viewports.c index 9fc9caa451..465a832399 100644 --- a/apps/plugins/test_viewports.c +++ b/apps/plugins/test_viewports.c @@ -21,10 +21,6 @@ #include "plugin.h" - - -#ifdef HAVE_LCD_BITMAP - #ifdef HAVE_LCD_COLOR #define BGCOLOR_1 LCD_RGBPACK(255,255,0) #define BGCOLOR_2 LCD_RGBPACK(0,255,0) @@ -207,61 +203,3 @@ enum plugin_status plugin_start(const void* parameter) return PLUGIN_OK; } - - -#else - -/* Charcell version of plugin */ - -static struct viewport vp0 = -{ - .x = 0, - .y = 0, - .width = 5, - .height = 1, -}; - -static struct viewport vp1 = -{ - .x = 6, - .y = 0, - .width = 5, - .height = 1, -}; - -static struct viewport vp2 = -{ - .x = 0, - .y = 1, - .width = LCD_WIDTH, - .height = 1, -}; - - -enum plugin_status plugin_start(const void* parameter) -{ - (void)parameter; - - rb->screens[SCREEN_MAIN]->set_viewport(&vp0); - rb->screens[SCREEN_MAIN]->clear_viewport(); - rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Rockbox"); - - rb->screens[SCREEN_MAIN]->set_viewport(&vp1); - rb->screens[SCREEN_MAIN]->clear_viewport(); - rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Viewports"); - - rb->screens[SCREEN_MAIN]->set_viewport(&vp2); - rb->screens[SCREEN_MAIN]->clear_viewport(); - rb->screens[SCREEN_MAIN]->puts_scroll(0,0,"Demonstration"); - - rb->screens[SCREEN_MAIN]->update(); - - rb->button_get(true); - - /* Restore the default viewport */ - rb->screens[SCREEN_MAIN]->set_viewport(NULL); - - return PLUGIN_OK; -} - -#endif /* !HAVE_LCD_BITMAP */ diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c index c8102eb6d2..fea0977c0d 100644 --- a/apps/plugins/text_viewer/text_viewer.c +++ b/apps/plugins/text_viewer/text_viewer.c @@ -61,10 +61,8 @@ enum plugin_status plugin_start(const void* file) atexit(tv_exit); while (!done) { -#ifdef HAVE_LCD_BITMAP if (preferences->statusbar) rb->send_event(GUI_EVENT_ACTIONUPDATE, NULL); -#endif if (display_update) tv_draw(); diff --git a/apps/plugins/text_viewer/tv_action.c b/apps/plugins/text_viewer/tv_action.c index 798871c430..041dee5a50 100644 --- a/apps/plugins/text_viewer/tv_action.c +++ b/apps/plugins/text_viewer/tv_action.c @@ -100,9 +100,7 @@ void tv_scroll_up(unsigned mode) (mode == TV_VERTICAL_SCROLL_PREFS && preferences->vertical_scroll_mode == VS_PAGE)) { offset_page--; -#ifdef HAVE_LCD_BITMAP offset_line = (preferences->overlap_page_mode)? 1:0; -#endif } tv_move_screen(offset_page, offset_line, SEEK_CUR); scrolled = true; @@ -117,9 +115,7 @@ void tv_scroll_down(unsigned mode) (mode == TV_VERTICAL_SCROLL_PREFS && preferences->vertical_scroll_mode == VS_PAGE)) { offset_page++; -#ifdef HAVE_LCD_BITMAP offset_line = (preferences->overlap_page_mode)? -1:0; -#endif } tv_move_screen(offset_page, offset_line, SEEK_CUR); scrolled = true; diff --git a/apps/plugins/text_viewer/tv_bookmark.c b/apps/plugins/text_viewer/tv_bookmark.c index 0f5d58b24e..1edad093a9 100644 --- a/apps/plugins/text_viewer/tv_bookmark.c +++ b/apps/plugins/text_viewer/tv_bookmark.c @@ -182,11 +182,7 @@ static const char* get_bookmark_name(int selected, void * data, (void)data; struct tv_bookmark_info *bookmark = &bookmarks[selected]; rb->snprintf(buffer, buffer_len, -#ifdef HAVE_LCD_BITMAP "%cPage: %d Line: %d", -#else - "%cP:%d L:%d", -#endif (bookmark->flag & TV_BOOKMARK_SYSTEM)? '*' : ' ', bookmark->pos.page + 1, bookmark->pos.line + 1); return buffer; diff --git a/apps/plugins/text_viewer/tv_display.c b/apps/plugins/text_viewer/tv_display.c index d6175b79cf..9ecfd8d709 100644 --- a/apps/plugins/text_viewer/tv_display.c +++ b/apps/plugins/text_viewer/tv_display.c @@ -25,7 +25,6 @@ /* * display layout * - * when is defined HAVE_LCD_BITMAP * +-------------------------+ * |statusbar (1) | * +-------------------------+ @@ -56,14 +55,6 @@ * (5) displays when preferences->footer_mode is FT_PAGE. * (6) displays when rb->global_settings->statusbar == STATUSBAR_BOTTOM. * - * - * when isn't defined HAVE_LCD_BITMAP - * +---+---------------------+ - * | | | - * |(7)| draw area | - * | | | - * +---+---------------------+ - * (7) bookmark */ #define TV_SCROLLBAR_WIDTH rb->global_settings->scrollbar_width @@ -83,14 +74,10 @@ static bool is_initialized_vp = false; static struct screen* display; /* layout */ -#ifdef HAVE_LCD_BITMAP static struct tv_rect header; static struct tv_rect footer; static struct tv_rect horizontal_scrollbar; static struct tv_rect vertical_scrollbar; -#else -static struct tv_rect bookmark; -#endif static bool show_horizontal_scrollbar; static bool show_vertical_scrollbar; @@ -103,8 +90,6 @@ static int row_height = 1; static int totalsize; -#ifdef HAVE_LCD_BITMAP - static void tv_show_header(void) { if (preferences->header_mode) @@ -156,8 +141,6 @@ static void tv_show_scrollbar(int window, int col, off_t cur_pos, int size) } } -#endif - void tv_init_scrollbar(off_t total, bool show_scrollbar) { totalsize = total; @@ -167,38 +150,23 @@ void tv_init_scrollbar(off_t total, bool show_scrollbar) void tv_show_bookmarks(const int *rows, int count) { -#ifdef HAVE_LCD_BITMAP display->set_viewport(&vp_text); display->set_drawmode(DRMODE_COMPLEMENT); -#endif while (count--) { -#ifdef HAVE_LCD_BITMAP display->fillrect(0, rows[count] * row_height, vp_text.width, row_height); -#else - display->putchar(bookmark.x, bookmark.y + rows[count], TV_BOOKMARK_ICON); -#endif } -#ifdef HAVE_LCD_BITMAP display->set_drawmode(DRMODE_SOLID); display->set_viewport(&vp_info); -#endif } void tv_update_extra(int window, int col, const struct tv_screen_pos *pos, int size) { -#ifdef HAVE_LCD_BITMAP tv_show_scrollbar(window, col, pos->file_pos, size); tv_show_header(); tv_show_footer(pos); -#else - (void)window; - (void)col; - (void)pos; - (void)size; -#endif } void tv_draw_text(int row, const unsigned char *text, int offset) @@ -217,11 +185,7 @@ void tv_draw_text(int row, const unsigned char *text, int offset) display->set_viewport(&vp_text); tv_night_mode(); -#ifdef HAVE_LCD_BITMAP display->putsxy(xpos, row * row_height, text); -#else - display->puts(xpos, row, text); -#endif display->set_viewport(&vp_info); } @@ -229,9 +193,7 @@ void tv_start_display(void) { display->set_viewport(&vp_info); tv_night_mode(); -#ifdef HAVE_LCD_BITMAP display->set_drawmode(DRMODE_SOLID); -#endif #if LCD_DEPTH > 1 rb->lcd_set_backdrop(NULL); @@ -248,7 +210,6 @@ void tv_end_display(void) void tv_set_layout(bool show_scrollbar) { -#ifdef HAVE_LCD_BITMAP int scrollbar_width = (show_scrollbar && preferences->vertical_scrollbar)? TV_SCROLLBAR_WIDTH + 1 : 0; int scrollbar_height = (show_scrollbar && preferences->horizontal_scrollbar)? @@ -282,20 +243,6 @@ void tv_set_layout(bool show_scrollbar) vp_text.y += vertical_scrollbar.y; vp_text.width = horizontal_scrollbar.w; vp_text.height = vertical_scrollbar.h; -#else - (void) show_scrollbar; - - row_height = 1; - - bookmark.x = 0; - bookmark.y = 0; - bookmark.w = 1; - bookmark.h = vp_info.height; - - vp_text = vp_info; - vp_text.x += 1; - vp_text.width -= 1; -#endif display_columns = vp_text.width / col_width; display_rows = vp_text.height / row_height; @@ -310,7 +257,6 @@ void tv_get_drawarea_info(int *width, int *cols, int *rows) static void tv_change_viewport(void) { -#ifdef HAVE_LCD_BITMAP bool show_statusbar = preferences->statusbar; if (is_initialized_vp) @@ -321,16 +267,8 @@ static void tv_change_viewport(void) rb->viewportmanager_theme_enable(SCREEN_MAIN, show_statusbar, &vp_info); vp_info.flags &= ~VP_FLAG_ALIGNMENT_MASK; display->set_viewport(&vp_info); -#else - if (!is_initialized_vp) - { - rb->viewport_set_defaults(&vp_info, SCREEN_MAIN); - is_initialized_vp = true; - } -#endif } -#ifdef HAVE_LCD_BITMAP static bool tv_set_font(const unsigned char *font) { unsigned char path[MAX_PATH]; @@ -350,11 +288,9 @@ static bool tv_set_font(const unsigned char *font) vp_text.font = preferences->font_id; return true; } -#endif static int tv_change_preferences(const struct tv_preferences *oldp) { -#ifdef HAVE_LCD_BITMAP static bool font_changing = false; const unsigned char *font_str; struct tv_preferences new_prefs; @@ -382,9 +318,6 @@ static int tv_change_preferences(const struct tv_preferences *oldp) col_width = 2 * rb->font_get_width(rb->font_get(preferences->font_id), ' '); font_changing = false; } -#else - (void)oldp; -#endif tv_change_viewport(); return TV_CALLBACK_OK; } @@ -419,7 +352,6 @@ void tv_night_mode(void) void tv_finalize_display(void) { -#ifdef HAVE_LCD_BITMAP /* restore font */ if (preferences->font_id >= 0 && (preferences->font_id != rb->global_status->font_id[SCREEN_MAIN])) @@ -430,14 +362,9 @@ void tv_finalize_display(void) /* undo viewport */ if (is_initialized_vp) rb->viewportmanager_theme_undo(SCREEN_MAIN, false); -#endif } bool tv_exist_scrollbar(void) { -#ifdef HAVE_LCD_BITMAP return true; -#else - return false; -#endif } diff --git a/apps/plugins/text_viewer/tv_menu.c b/apps/plugins/text_viewer/tv_menu.c index 01fb052151..53e0adaf67 100644 --- a/apps/plugins/text_viewer/tv_menu.c +++ b/apps/plugins/text_viewer/tv_menu.c @@ -34,12 +34,10 @@ static struct tv_preferences new_prefs; /* horizontal scroll settings menu */ /* */ -#ifdef HAVE_LCD_BITMAP static bool tv_horizontal_scrollbar_setting(void) { return rb->set_bool("Horizontal Scrollbar", &new_prefs.horizontal_scrollbar); } -#endif static bool tv_horizontal_scroll_mode_setting(void) { @@ -52,30 +50,24 @@ static bool tv_horizontal_scroll_mode_setting(void) names, 2, NULL); } -#ifdef HAVE_LCD_BITMAP MENUITEM_FUNCTION(horizontal_scrollbar_item, 0, "Scrollbar", tv_horizontal_scrollbar_setting, NULL, NULL, Icon_NOICON); -#endif MENUITEM_FUNCTION(horizontal_scroll_mode_item, 0, "Scroll Mode", tv_horizontal_scroll_mode_setting, NULL, NULL, Icon_NOICON); MAKE_MENU(horizontal_scroll_menu, "Horizontal", NULL, Icon_NOICON, -#ifdef HAVE_LCD_BITMAP &horizontal_scrollbar_item, -#endif &horizontal_scroll_mode_item); /* */ /* vertical scroll settings menu */ /* */ -#ifdef HAVE_LCD_BITMAP static bool tv_vertical_scrollbar_setting(void) { return rb->set_bool("Vertical Scrollbar", &new_prefs.vertical_scrollbar); } -#endif static bool tv_vertical_scroll_mode_setting(void) { @@ -110,11 +102,9 @@ static bool tv_narrow_mode_setting(void) names, 2, NULL); } -#ifdef HAVE_LCD_BITMAP MENUITEM_FUNCTION(vertical_scrollbar_item, 0, "Scrollbar", tv_vertical_scrollbar_setting, NULL, NULL, Icon_NOICON); -#endif MENUITEM_FUNCTION(vertical_scroll_mode_item, 0, "Scroll Mode", tv_vertical_scroll_mode_setting, NULL, NULL, Icon_NOICON); MENUITEM_FUNCTION(overlap_page_mode_item, 0, "Overlap Pages", tv_overlap_page_mode_setting, @@ -125,9 +115,7 @@ MENUITEM_FUNCTION(narrow_mode_item, 0, "Left/Right Key (Narrow mode)", tv_narrow_mode_setting, NULL, NULL, Icon_NOICON); MAKE_MENU(vertical_scroll_menu, "Vertical", NULL, Icon_NOICON, -#ifdef HAVE_LCD_BITMAP &vertical_scrollbar_item, -#endif &vertical_scroll_mode_item, &overlap_page_mode_item, &autoscroll_speed_item, &narrow_mode_item); @@ -198,7 +186,6 @@ static bool tv_alignment_setting(void) names , 2, NULL); } -#ifdef HAVE_LCD_BITMAP static bool tv_header_setting(void) { return rb->set_bool("Show Header", &new_prefs.header_mode); @@ -239,7 +226,6 @@ static bool tv_font_setting(void) return false; } -#endif static bool tv_indent_spaces_setting(void) { @@ -264,7 +250,6 @@ MENUITEM_FUNCTION(windows_item, 0, "Screens Per Page", tv_windows_setting, NULL, NULL, Icon_NOICON); MENUITEM_FUNCTION(alignment_item, 0, "Alignment", tv_alignment_setting, NULL, NULL, Icon_NOICON); -#ifdef HAVE_LCD_BITMAP MENUITEM_FUNCTION(header_item, 0, "Show Header", tv_header_setting, NULL, NULL, Icon_NOICON); MENUITEM_FUNCTION(footer_item, 0, "Show Footer", tv_footer_setting, @@ -273,7 +258,6 @@ MENUITEM_FUNCTION(statusbar_item, 0, "Show Statusbar", tv_statusbar_setting, NULL, NULL, Icon_NOICON); MENUITEM_FUNCTION(font_item, 0, "Font", tv_font_setting, NULL, NULL, Icon_NOICON); -#endif MENUITEM_FUNCTION(indent_spaces_item, 0, "Indent Spaces", tv_indent_spaces_setting, NULL, NULL, Icon_NOICON); #ifdef HAVE_LCD_COLOR @@ -284,9 +268,7 @@ MENUITEM_FUNCTION(night_mode_item, 0, "Night Mode", tv_night_mode_setting, MAKE_MENU(option_menu, "Viewer Options", NULL, Icon_NOICON, &encoding_item, &word_wrap_item, &line_mode_item, &windows_item, &alignment_item, -#ifdef HAVE_LCD_BITMAP &header_item, &footer_item, &font_item, &statusbar_item, -#endif &scroll_menu, &indent_spaces_item #ifdef HAVE_LCD_COLOR , &night_mode_item diff --git a/apps/plugins/text_viewer/tv_preferences.c b/apps/plugins/text_viewer/tv_preferences.c index 54c21ba04d..fdfe068068 100644 --- a/apps/plugins/text_viewer/tv_preferences.c +++ b/apps/plugins/text_viewer/tv_preferences.c @@ -59,12 +59,10 @@ static bool tv_notify_change_preferences(const struct tv_preferences *oldp) (oldp->vertical_scrollbar != preferences->vertical_scrollbar) || (oldp->encoding != preferences->encoding) || (oldp->indent_spaces != preferences->indent_spaces) || -#ifdef HAVE_LCD_BITMAP (oldp->header_mode != preferences->header_mode) || (oldp->footer_mode != preferences->footer_mode) || (oldp->statusbar != preferences->statusbar) || (rb->strcmp(oldp->font_name, preferences->font_name)) || -#endif (rb->strcmp(oldp->file_name, preferences->file_name))) { /* callback functions are called as FILO */ @@ -110,17 +108,11 @@ void tv_set_default_preferences(struct tv_preferences *p) p->overlap_page_mode = false; p->horizontal_scrollbar = false; p->vertical_scrollbar = false; -#ifdef HAVE_LCD_BITMAP p->header_mode = true; p->footer_mode = true; p->statusbar = true; rb->strlcpy(p->font_name, rb->global_settings->font_file, MAX_PATH); p->font_id = rb->global_status->font_id[SCREEN_MAIN]; -#else - p->header_mode = false; - p->footer_mode = false; - p->statusbar = false; -#endif p->autoscroll_speed = 10; p->night_mode = false; p->narrow_mode = NM_PAGE; @@ -139,7 +131,5 @@ void tv_add_preferences_change_listner(int (*listner)(const struct tv_preference void tv_change_fontid(int id) { (void)id; -#ifdef HAVE_LCD_BITMAP prefs.font_id = id; -#endif } diff --git a/apps/plugins/text_viewer/tv_preferences.h b/apps/plugins/text_viewer/tv_preferences.h index 65d9521e15..4f36dc1fb6 100644 --- a/apps/plugins/text_viewer/tv_preferences.h +++ b/apps/plugins/text_viewer/tv_preferences.h @@ -95,10 +95,9 @@ struct tv_preferences { bool night_mode; -#ifdef HAVE_LCD_BITMAP unsigned char font_name[MAX_PATH]; int font_id; -#endif + unsigned char file_name[MAX_PATH]; }; diff --git a/apps/plugins/text_viewer/tv_settings.c b/apps/plugins/text_viewer/tv_settings.c index dfd47ec7a3..6f4e5f2ff8 100644 --- a/apps/plugins/text_viewer/tv_settings.c +++ b/apps/plugins/text_viewer/tv_settings.c @@ -219,11 +219,9 @@ static bool tv_read_preferences(int pfd, int version, struct tv_preferences *pre if (version > 6) prefs->night_mode = (*p++ != 0); -#ifdef HAVE_LCD_BITMAP rb->strlcpy(prefs->font_name, buf + read_size - MAX_PATH, MAX_PATH); prefs->font_id = rb->global_status->font_id[SCREEN_MAIN]; -#endif return true; } @@ -253,9 +251,7 @@ static void tv_serialize_preferences(unsigned char *buf, const struct tv_prefere *p++ = prefs->statusbar; *p++ = prefs->night_mode; -#ifdef HAVE_LCD_BITMAP rb->strlcpy(buf + 28, prefs->font_name, MAX_PATH); -#endif } static bool tv_write_preferences(int pfd, const struct tv_preferences *prefs) diff --git a/apps/plugins/text_viewer/tv_text_processor.c b/apps/plugins/text_viewer/tv_text_processor.c index fa644d7725..db96d61409 100644 --- a/apps/plugins/text_viewer/tv_text_processor.c +++ b/apps/plugins/text_viewer/tv_text_processor.c @@ -33,11 +33,7 @@ enum{ }; /* the max characters of each blocks */ -#ifdef HAVE_LCD_BITMAP #define TV_MAX_CHARS_PER_BLOCK (LCD_WIDTH / 2 + 1) -#else -#define TV_MAX_CHARS_PER_BLOCK (LCD_WIDTH + 1) -#endif #define TV_MAX_BLOCKS 5 @@ -90,15 +86,11 @@ static int tv_glyph_width(int ch) if (ch == 0) ch = ' '; -#ifdef HAVE_LCD_BITMAP /* the width of the diacritics charcter is 0 */ if (rb->is_diacritic(ch, NULL)) return 0; return rb->font_get_width(rb->font_get(preferences->font_id), ch); -#else - return 1; -#endif } static unsigned char *tv_get_ucs(const unsigned char *str, unsigned short *ch) @@ -138,7 +130,6 @@ static unsigned char *tv_get_ucs(const unsigned char *str, unsigned short *ch) if (preferences->encoding == UTF_8) return (unsigned char*)rb->utf8decode(str, ch); -#ifdef HAVE_LCD_BITMAP if ((*str >= 0x80) && ((preferences->encoding > SJIS) || (preferences->encoding == SJIS && (*str <= 0xa0 || *str >= 0xe0)))) @@ -151,7 +142,7 @@ static unsigned char *tv_get_ucs(const unsigned char *str, unsigned short *ch) } count = 2; } -#endif + rb->iso_decode(str, utf8_tmp, preferences->encoding, count); rb->utf8decode(utf8_tmp, ch); return (unsigned char *)str + count; diff --git a/apps/plugins/theme_remove.c b/apps/plugins/theme_remove.c index 674342a920..f39d224868 100644 --- a/apps/plugins/theme_remove.c +++ b/apps/plugins/theme_remove.c @@ -48,18 +48,12 @@ struct remove_setting { }; static int remove_wps(struct remove_setting *); -#ifdef HAVE_LCD_BITMAP static int remove_icons(struct remove_setting *setting); -#endif enum remove_settings { -#ifdef HAVE_LCD_BITMAP REMOVE_FONT, -#endif REMOVE_WPS, -#ifdef HAVE_LCD_BITMAP REMOVE_SBS, -#endif #ifdef HAVE_REMOTE_LCD REMOVE_RWPS, REMOVE_RSBS, @@ -67,10 +61,8 @@ enum remove_settings { #if LCD_DEPTH > 1 REMOVE_BACKDROP, #endif -#ifdef HAVE_LCD_BITMAP REMOVE_ICON, REMOVE_VICON, -#endif #ifdef HAVE_REMOTE_LCD REMOVE_RICON, REMOVE_RVICON, @@ -83,16 +75,12 @@ enum remove_settings { static bool create_log = true; static struct remove_setting remove_list[NUM_REMOVE_ITEMS] = { -#ifdef HAVE_LCD_BITMAP [REMOVE_FONT] = { "font", FONT_DIR "/", ".fnt", "", ASK_FOR_REMOVAL, NULL, false }, -#endif [REMOVE_WPS] = { "wps", WPS_DIR "/", ".wps", "", REMOVE_IF_NOT_USED, remove_wps, false }, -#ifdef HAVE_LCD_BITMAP [REMOVE_SBS] = { "sbs", SBS_DIR "/", ".sbs", "", REMOVE_IF_NOT_USED, remove_wps, false }, -#endif #ifdef HAVE_REMOTE_LCD [REMOVE_RWPS] = { "rwps", WPS_DIR "/", ".rwps", "", REMOVE_IF_NOT_USED, remove_wps, false }, @@ -103,12 +91,10 @@ static struct remove_setting remove_list[NUM_REMOVE_ITEMS] = { [REMOVE_BACKDROP] = { "backdrop", BACKDROP_DIR "/", ".bmp", "", REMOVE_IF_NOT_USED, NULL, false }, #endif -#ifdef HAVE_LCD_BITMAP [REMOVE_ICON] = { "iconset", ICON_DIR "/", ".bmp", "", ASK_FOR_REMOVAL, NULL, false }, [REMOVE_VICON] = { "viewers iconset", ICON_DIR "/", ".bmp", "", ASK_FOR_REMOVAL, remove_icons, false }, -#endif #ifdef HAVE_REMOTE_LCD [REMOVE_RICON] = { "remote iconset", ICON_DIR "/", ".bmp", "", ASK_FOR_REMOVAL, NULL, false }, @@ -124,19 +110,15 @@ static char *option_names[NUM_REMOVE_OPTION] = { "always", "never", "not used", "ask", }; static struct configdata config[] = { -#ifdef HAVE_LCD_BITMAP { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_FONT].option }, "remove font", option_names }, -#endif { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_WPS].option }, "remove wps", option_names }, -#ifdef HAVE_LCD_BITMAP { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_SBS].option }, "remove sbs", option_names }, -#endif #ifdef HAVE_REMOTE_LCD { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_RWPS].option }, @@ -150,14 +132,12 @@ static struct configdata config[] = { { .int_p = &remove_list[REMOVE_BACKDROP].option }, "remove backdrop", option_names }, #endif -#ifdef HAVE_LCD_BITMAP { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_ICON].option }, "remove iconset", option_names }, { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_VICON].option }, "remove viconset", option_names }, -#endif #ifdef HAVE_REMOTE_LCD { TYPE_INT, 0, NUM_REMOVE_OPTION, { .int_p = &remove_list[REMOVE_RICON].option }, @@ -285,7 +265,6 @@ static int remove_wps(struct remove_setting *setting) return remove_dir(bmpdir, MAX_PATH); } -#ifdef HAVE_LCD_BITMAP static int remove_icons(struct remove_setting *setting) { char path[MAX_PATH]; @@ -306,19 +285,15 @@ static int remove_icons(struct remove_setting *setting) show_mess("Removed", path); return 0; } -#endif -#ifdef HAVE_LCD_BITMAP static char font_file[MAX_PATH]; -#endif + static bool is_deny_file(const char *file) { const char *deny_files[] = { WPS_DEFAULTCFG, RWPS_DEFAULTCFG, -#ifdef HAVE_LCD_BITMAP font_file, -#endif NULL }; const char **p = deny_files; @@ -334,13 +309,9 @@ static bool is_deny_file(const char *file) static void check_whether_used_in_setting(void) { const char *setting_files[] = { -#ifdef HAVE_LCD_BITMAP rb->global_settings->font_file, -#endif rb->global_settings->wps_file, -#ifdef HAVE_LCD_BITMAP rb->global_settings->sbs_file, -#endif #ifdef HAVE_REMOTE_LCD rb->global_settings->rwps_file, rb->global_settings->rsbs_file, @@ -348,10 +319,8 @@ static void check_whether_used_in_setting(void) #if LCD_DEPTH > 1 rb->global_settings->backdrop_file, #endif -#ifdef HAVE_LCD_BITMAP rb->global_settings->icon_file, rb->global_settings->viewers_icon_file, -#endif #ifdef HAVE_REMOTE_LCD rb->global_settings->remote_icon_file, rb->global_settings->remote_viewers_icon_file, @@ -419,12 +388,10 @@ static void check_whether_used(void) DIR *dir; check_whether_used_in_setting(); -#ifdef HAVE_LCD_BITMAP /* mark font files come from rockbox-font.zip as used and don't remove * them automatically as themes may depend on those fonts. */ if (remove_list[REMOVE_FONT].option == REMOVE_IF_NOT_USED) check_whether_used_in_file(RB_FONTS_CONFIG); -#endif dir = rb->opendir(THEME_DIR); if (!dir) @@ -591,13 +558,9 @@ static bool option_menu(void) { MENUITEM_STRINGLIST(option_menu, "Remove Options", NULL, /* same order as remove_list */ -#ifdef HAVE_LCD_BITMAP "Font", -#endif "WPS", -#ifdef HAVE_LCD_BITMAP "Statusbar Skin", -#endif #ifdef HAVE_REMOTE_LCD "Remote WPS", "Remote Statusbar Skin", @@ -605,9 +568,7 @@ static bool option_menu(void) #if LCD_DEPTH > 1 "Backdrop", #endif -#ifdef HAVE_LCD_BITMAP "Iconset", "Viewers Iconset", -#endif #ifdef HAVE_REMOTE_LCD "Remote Iconset", "Remote Viewers Iconset", #endif @@ -669,10 +630,8 @@ enum plugin_status plugin_start(const void* parameter) if((p = rb->strrchr(title, '.'))) *p = 0; -#ifdef HAVE_LCD_BITMAP rb->snprintf(font_file, MAX_PATH, FONT_DIR "/%s.fnt", rb->global_settings->font_file); -#endif rb->strlcpy(themefile, parameter, MAX_PATH); if (!rb->file_exists(themefile)) { diff --git a/apps/plugins/wav2wv.c b/apps/plugins/wav2wv.c index cd27c92699..b7e9727230 100644 --- a/apps/plugins/wav2wv.c +++ b/apps/plugins/wav2wv.c @@ -77,9 +77,7 @@ static void wvupdate (int32_t start_tick, rb->lcd_putsf(0, 6, "realtime: %d%% ", realtime); rb->lcd_putsf(0, 8, "compression: %d%% ", compression); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif } #define TEMP_SAMPLES 4096 @@ -102,9 +100,7 @@ static int wav2wv(const char *infile) rb->lcd_clear_display(); rb->lcd_puts_scroll(0, 0, (unsigned char *)infile); -#ifdef HAVE_LCD_BITMAP rb->lcd_update(); -#endif last_buttons = rb->button_status (); start_tick = *rb->current_tick; diff --git a/apps/radio/presets.c b/apps/radio/presets.c index 72e8c3bd65..0d3156b144 100644 --- a/apps/radio/presets.c +++ b/apps/radio/presets.c @@ -608,7 +608,6 @@ void presets_save(void) } #if 0 /* disabled in draw_progressbar() */ -#ifdef HAVE_LCD_BITMAP static inline void draw_vertical_line_mark(struct screen * screen, int x, int y, int h) { @@ -634,4 +633,3 @@ void presets_draw_markers(struct screen *screen, } } #endif -#endif diff --git a/apps/recorder/icons.h b/apps/recorder/icons.h index 4faa757184..66de36bcd0 100644 --- a/apps/recorder/icons.h +++ b/apps/recorder/icons.h @@ -26,8 +26,6 @@ #include #include "metadata.h" -#ifdef HAVE_LCD_BITMAP - /* External bitmaps */ #include "bitmaps/rockboxlogo.h" @@ -125,6 +123,5 @@ extern const unsigned char bitmap_icon_disk[]; #define ICON_DISK_X_POS STATUSBAR_WIDTH-ICON_DISK_WIDTH #define TIME_X_END STATUSBAR_WIDTH-1 -#endif /* End HAVE_LCD_BITMAP */ #endif /* PLUGIN */ #endif /* _ICONS_H_ */ diff --git a/apps/screen_access.c b/apps/screen_access.c index cdb02a6546..44e90742b0 100644 --- a/apps/screen_access.c +++ b/apps/screen_access.c @@ -39,43 +39,30 @@ /* some helper functions to calculate metrics on the fly */ static int screen_helper_getcharwidth(void) { -#ifdef HAVE_LCD_BITMAP return font_get(lcd_getfont())->maxwidth; -#else - return 1; -#endif } static int screen_helper_getcharheight(void) { -#ifdef HAVE_LCD_BITMAP return font_get(lcd_getfont())->height; -#else - return 1; -#endif } static int screen_helper_getnblines(void) { int height=screens[0].lcdheight; -#ifdef HAVE_LCD_BITMAP if(global_settings.statusbar != STATUSBAR_OFF) height -= STATUSBAR_HEIGHT; -#endif return height / screens[0].getcharheight(); } void screen_helper_setfont(int font) { (void)font; -#ifdef HAVE_LCD_BITMAP if (font == FONT_UI) font = global_status.font_id[SCREEN_MAIN]; lcd_setfont(font); -#endif } -#ifdef HAVE_LCD_BITMAP static int screen_helper_getuifont(void) { return global_status.font_id[SCREEN_MAIN]; @@ -85,15 +72,10 @@ static void screen_helper_setuifont(int font) { global_status.font_id[SCREEN_MAIN] = font; } -#endif static void screen_helper_set_drawmode(int mode) { -#ifdef HAVE_LCD_BITMAP lcd_set_drawmode(mode); -#else - (void) mode; -#endif } static void screen_helper_put_line(int x, int y, struct line_desc *line, @@ -108,29 +90,19 @@ static void screen_helper_put_line(int x, int y, struct line_desc *line, #if NB_SCREENS == 2 static int screen_helper_remote_getcharwidth(void) { -#ifdef HAVE_LCD_BITMAP return font_get(lcd_remote_getfont())->maxwidth; -#else - return 1; -#endif } static int screen_helper_remote_getcharheight(void) { -#ifdef HAVE_LCD_BITMAP return font_get(lcd_remote_getfont())->height; -#else - return 1; -#endif } static int screen_helper_remote_getnblines(void) { int height=screens[1].lcdheight; -#ifdef HAVE_LCD_BITMAP if(global_settings.statusbar != STATUSBAR_OFF) height -= STATUSBAR_HEIGHT; -#endif return height / screens[1].getcharheight(); } @@ -143,18 +115,12 @@ void screen_helper_remote_setfont(int font) static int screen_helper_remote_getuifont(void) { -#ifdef HAVE_LCD_BITMAP return global_status.font_id[SCREEN_REMOTE]; -#else - return FONT_SYSFIXED; -#endif } static void screen_helper_remote_setuifont(int font) { -#ifdef HAVE_LCD_BITMAP global_status.font_id[SCREEN_REMOTE] = font; -#endif } static void screen_helper_remote_put_line(int x, int y, struct line_desc *line, @@ -181,9 +147,7 @@ struct screen screens[NB_SCREENS] = #else .is_color=false, #endif -#ifdef HAVE_LCD_BITMAP .pixel_format=LCD_PIXELFORMAT, -#endif .getcharwidth=screen_helper_getcharwidth, .getcharheight=screen_helper_getcharheight, #if (CONFIG_LED == LED_VIRTUAL) @@ -196,7 +160,6 @@ struct screen screens[NB_SCREENS] = .getwidth=&lcd_getwidth, .getheight=&lcd_getheight, .getstringsize=&lcd_getstringsize, -#ifdef HAVE_LCD_BITMAP .setfont=screen_helper_setfont, .getuifont=screen_helper_getuifont, .setuifont=screen_helper_setuifont, @@ -235,7 +198,6 @@ struct screen screens[NB_SCREENS] = .vline=&lcd_vline, .hline=&lcd_hline, .scroll_step=&lcd_scroll_step, -#endif /* HAVE_LCD_BITMAP */ .putsxy=&lcd_putsxy, .puts=&lcd_puts, @@ -259,12 +221,10 @@ struct screen screens[NB_SCREENS] = .backdrop_load=&backdrop_load, .backdrop_show=&backdrop_show, #endif -#if defined(HAVE_LCD_BITMAP) .set_framebuffer = (void*)lcd_set_framebuffer, #if defined(HAVE_LCD_COLOR) .gradient_fillrect = lcd_gradient_fillrect, .gradient_fillrect_part = lcd_gradient_fillrect_part, -#endif #endif .put_line = screen_helper_put_line, }, @@ -347,15 +307,12 @@ struct screen screens[NB_SCREENS] = .backdrop_load=&remote_backdrop_load, .backdrop_show=&remote_backdrop_show, #endif -#if defined(HAVE_LCD_BITMAP) .set_framebuffer = (void*)lcd_remote_set_framebuffer, -#endif .put_line = screen_helper_remote_put_line, } #endif /* NB_SCREENS == 2 */ }; -#ifdef HAVE_LCD_BITMAP void screen_clear_area(struct screen * display, int xstart, int ystart, int width, int height) { @@ -363,4 +320,3 @@ void screen_clear_area(struct screen * display, int xstart, int ystart, display->fillrect(xstart, ystart, width, height); display->set_drawmode(DRMODE_SOLID); } -#endif diff --git a/apps/screen_access.h b/apps/screen_access.h index eab84c9129..79ad79c153 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h @@ -50,9 +50,7 @@ struct screen int lcdwidth, lcdheight; int depth; int (*getnblines)(void); -#ifdef HAVE_LCD_BITMAP int pixel_format; -#endif int (*getcharwidth)(void); int (*getcharheight)(void); bool is_color; @@ -64,7 +62,6 @@ struct screen int (*getwidth)(void); int (*getheight)(void); int (*getstringsize)(const unsigned char *str, int *w, int *h); -#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) /* always bitmap */ void (*setfont)(int newfont); int (*getuifont)(void); void (*setuifont)(int newfont); @@ -104,7 +101,6 @@ struct screen void (*drawline)(int x1, int y1, int x2, int y2); void (*vline)(int x, int y1, int y2); void (*hline)(int x1, int x2, int y); -#endif /* HAVE_LCD_BITMAP || HAVE_REMOTE_LCD */ void (*putsxy)(int x, int y, const unsigned char *str); void (*puts)(int x, int y, const unsigned char *str); @@ -130,7 +126,6 @@ struct screen bool (*backdrop_load)(const char *filename, char* backdrop_buffer); void (*backdrop_show)(char* backdrop_buffer); #endif -#if defined(HAVE_LCD_BITMAP) void (*set_framebuffer)(void *framebuffer); #if defined(HAVE_LCD_COLOR) void (*gradient_fillrect)(int x, int y, int width, int height, @@ -138,15 +133,11 @@ struct screen void (*gradient_fillrect_part)(int x, int y, int width, int height, unsigned start, unsigned end, int src_height, int row_skip); #endif -#endif -#if defined(HAVE_LCD_BITMAP) void (*nine_segment_bmp)(const struct bitmap* bm, int x, int y, int width, int height); -#endif void (*put_line)(int x, int y, struct line_desc *line, const char *fmt, ...); }; -#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) /* * Clear only a given area of the screen * - screen : the screen structure @@ -155,7 +146,6 @@ struct screen */ void screen_clear_area(struct screen * display, int xstart, int ystart, int width, int height); -#endif /* * exported screens array that should be used diff --git a/apps/screens.c b/apps/screens.c index 47f110efd9..020d0a3021 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -66,7 +66,7 @@ void charging_splash(void) #endif -#if defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0) +#if (CONFIG_RTC != 0) /* little helper function for voice output */ static void say_time(int cursorpos, const struct tm *tm) @@ -360,7 +360,7 @@ bool set_time_screen(const char* title, struct tm *tm) #endif return usb; } -#endif /* defined(HAVE_LCD_BITMAP) && (CONFIG_RTC != 0) */ +#endif /* (CONFIG_RTC != 0) */ static const int id3_headers[]= { diff --git a/apps/settings.c b/apps/settings.c index 17e200812e..6cecffcb91 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -47,11 +47,9 @@ #include "system.h" #include "general.h" #include "misc.h" -#ifdef HAVE_LCD_BITMAP #include "icons.h" #include "font.h" #include "peakmeter.h" -#endif #include "lang.h" #include "language.h" #include "powermgmt.h" @@ -91,11 +89,7 @@ struct system_status global_status; #define NVRAM_BLOCK_SIZE (sizeof(struct system_status) + NVRAM_DATA_START) #endif -#ifdef HAVE_LCD_BITMAP #define MAX_LINES 10 -#else -#define MAX_LINES 2 -#endif #ifdef HAVE_REMOTE_LCD #include "lcd-remote.h" @@ -706,8 +700,6 @@ bool settings_save_config(int options) /** Apply and Reset settings **/ - -#ifdef HAVE_LCD_BITMAP /* * Applies the range infos stored in global_settings to * the peak meter. @@ -734,7 +726,6 @@ void settings_apply_pm_range(void) /* apply the range */ peak_meter_init_range(global_settings.peak_meter_dbfs, pm_min, pm_max); } -#endif /* HAVE_LCD_BITMAP */ void sound_settings_apply(void) { @@ -786,9 +777,7 @@ void sound_settings_apply(void) void settings_apply(bool read_disk) { -#ifdef HAVE_LCD_BITMAP int rc; -#endif CHART(">set_codepage"); set_codepage(global_settings.default_codepage); CHART("viewportmanager_theme_changed"); viewportmanager_theme_changed(THEME_UI_VIEWPORT|THEME_LANGUAGE|THEME_BUTTONBAR); CHART(" FONT_SYSFIXED) @@ -1119,7 +1099,6 @@ void settings_reset(void) screens[i].setfont(FONT_SYSFIXED); } } -#endif } /** Changing setting values **/ diff --git a/apps/settings.h b/apps/settings.h index 3d3939695c..405a31d052 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -286,9 +286,7 @@ struct system_status signed char last_screen; int viewer_icon_count; int last_volume_change; /* tick the last volume change happened. skins use this */ -#ifdef HAVE_LCD_BITMAP int font_id[NB_SCREENS]; /* font id of the settings font for each screen */ -#endif }; @@ -494,9 +492,7 @@ struct user_settings int peak_meter_max; /* range maximum */ unsigned char wps_file[MAX_FILENAME+1]; /* last wps */ -#ifdef HAVE_LCD_BITMAP unsigned char sbs_file[MAX_FILENAME+1]; /* last statusbar skin */ -#endif #ifdef HAVE_REMOTE_LCD unsigned char rwps_file[MAX_FILENAME+1]; /* last remote-wps */ unsigned char rsbs_file[MAX_FILENAME+1]; /* last remote statusbar skin */ @@ -514,7 +510,6 @@ struct user_settings int remote_statusbar; #endif -#ifdef HAVE_LCD_BITMAP int scrollbar; /* SCROLLBAR_* enum values */ int scrollbar_width; @@ -524,7 +519,6 @@ struct user_settings #if LCD_DEPTH > 1 int list_separator_height; /* -1=auto (== 1 currently), 0=disabled, X=height in pixels */ int list_separator_color; -#endif #endif /* goto current song when exiting WPS */ bool browse_current; /* 1=goto current song, @@ -621,7 +615,6 @@ struct user_settings int contrast; /* lcd contrast */ #endif -#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_INVERT bool invert; /* invert display */ #endif @@ -640,7 +633,6 @@ struct user_settings unsigned char remote_font_file[MAX_FILENAME+1]; /* last font */ #endif unsigned char kbd_file[MAX_FILENAME+1]; /* last keyboard */ -#endif /* HAVE_LCD_BITMAP */ int backlight_timeout; /* backlight off timeout: -1=never, 0=always, or time in seconds */ bool caption_backlight; /* turn on backlight at end and start of track */ @@ -748,11 +740,9 @@ struct user_settings bool usb_skip_first_drive; #endif -#ifdef HAVE_LCD_BITMAP unsigned char ui_vp_config[64]; /* viewport string for the lists */ #ifdef HAVE_REMOTE_LCD unsigned char remote_ui_vp_config[64]; /* viewport string for the remote lists */ -#endif #endif struct compressor_settings compressor_settings; diff --git a/apps/settings_list.c b/apps/settings_list.c index 7f6f4fefc7..e5e523da93 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -43,9 +43,7 @@ #endif #include "list.h" #include "rbunicode.h" -#ifdef HAVE_LCD_BITMAP #include "peakmeter.h" -#endif #include "menus/eq_menu.h" #if CONFIG_TUNER #include "radio.h" @@ -219,17 +217,13 @@ static const int time_recording_trigger[] = {0,1,2,5,10,15,20,25,30,60,120,300,6 static const int backlight_fade[] = {0,100,200,300,500,1000,2000,3000,5000,10000}; #endif -#ifdef HAVE_LCD_BITMAP static const char graphic_numeric[] = "graphic,numeric"; -#endif /* Default theme settings */ #define DEFAULT_WPSNAME "cabbiev2" #define DEFAULT_SBSNAME "-" #define DEFAULT_FMS_NAME "cabbiev2" -#ifdef HAVE_LCD_BITMAP - #if LCD_HEIGHT <= 64 #define DEFAULT_FONT_HEIGHT 8 #define DEFAULT_FONTNAME "08-Rockfont" @@ -255,10 +249,6 @@ static const char graphic_numeric[] = "graphic,numeric"; #define MIN_GLYPHS 50 #define MAX_GLYPHS 65540 -#else - #define DEFAULT_FONT_HEIGHT 12 -#endif - #ifndef DEFAULT_FONTNAME /* ugly expansion needed */ #define _EXPAND2(x) #x @@ -438,7 +428,6 @@ static int32_t getlang_time_unit_0_is_skip_track(int value, int unit) return talk_time_intervals(value, unit, false); } -#ifdef HAVE_LCD_BITMAP static const char* formatter_time_unit_0_is_eternal(char *buffer, size_t buffer_size, int val, const char *unit) { @@ -455,7 +444,6 @@ static int32_t getlang_time_unit_0_is_eternal(int value, int unit) else return talk_time_intervals(value, unit, false); } -#endif /* HAVE_LCD_BITMAP */ #ifndef HAVE_WHEEL_ACCELERATION static const char* scanaccel_formatter(char *buffer, size_t buffer_size, @@ -907,7 +895,6 @@ const struct settings_list settings[] = { 23, timeout_sec_common), #endif #endif /* HAVE_BACKLIGHT */ -#ifdef HAVE_LCD_BITMAP #ifdef HAVE_LCD_INVERT BOOL_SETTING(0, invert, LANG_INVERT, false ,"invert", off_on, LANG_INVERT_LCD_INVERSE, LANG_NORMAL, lcd_set_invert_display), @@ -972,7 +959,6 @@ const struct settings_list settings[] = { CHOICE_SETTING(0, timeformat, LANG_TIMEFORMAT, 0, "time format", "24hour,12hour", NULL, 2, ID2P(LANG_24_HOUR_CLOCK), ID2P(LANG_12_HOUR_CLOCK)), -#endif /* HAVE_LCD_BITMAP */ OFFON_SETTING(0,show_icons, LANG_SHOW_ICONS ,true,"show icons", NULL), /* system */ INT_SETTING(F_TIME_SETTING, poweroff, LANG_POWEROFF_IDLE, 10, @@ -1170,7 +1156,6 @@ const struct settings_list settings[] = { "remote bidir limit", UNIT_PERCENT, 0, 200, 25, NULL, NULL, lcd_remote_bidir_scroll), #endif -#ifdef HAVE_LCD_BITMAP OFFON_SETTING(0, offset_out_of_view, LANG_SCREEN_SCROLL_VIEW, false, "Screen Scrolls Out Of View", gui_list_screen_scroll_out_of_view), @@ -1179,7 +1164,6 @@ const struct settings_list settings[] = { INT_SETTING(F_PADTITLE, screen_scroll_step, LANG_SCREEN_SCROLL_STEP, 16, "screen scroll step", UNIT_PIXEL, 1, LCD_WIDTH, 1, NULL, NULL, gui_list_screen_scroll_step), -#endif /* HAVE_LCD_BITMAP */ OFFON_SETTING(0,scroll_paginated,LANG_SCROLL_PAGINATED, false,"scroll paginated",NULL), #ifdef HAVE_LCD_COLOR @@ -1274,7 +1258,6 @@ const struct settings_list settings[] = { ID2P(LANG_SET_BOOL_YES), ID2P(LANG_BOOKMARK_SETTINGS_ONE_PER_PLAYLIST), ID2P(LANG_BOOKMARK_SETTINGS_ONE_PER_TRACK)), -#ifdef HAVE_LCD_BITMAP /* peak meter */ TABLE_SETTING_LIST(F_TIME_SETTING | F_ALLOW_ARBITRARY_VALS, peak_meter_clip_hold, LANG_PM_CLIP_HOLD, 60, "peak meter clip hold", "eternal", @@ -1297,7 +1280,6 @@ const struct settings_list settings[] = { OFFON_SETTING(0, peak_meter_clipcounter, LANG_PM_CLIPCOUNTER, false, "peak meter clipcounter", NULL), #endif /* HAVE_RECORDING */ -#endif /* HAVE_LCD_BITMAP */ /* voice */ OFFON_SETTING(F_TEMPVAR, talk_menu, LANG_VOICE_MENU, true, "talk menu", NULL), CHOICE_SETTING(0, talk_dir, LANG_VOICE_DIR, 0, @@ -1755,7 +1737,6 @@ const struct settings_list settings[] = { #endif CHOICE_SETTING(F_TEMPVAR, default_codepage, LANG_DEFAULT_CODEPAGE, 0, "default codepage", -#ifdef HAVE_LCD_BITMAP /* The order must match with that in unicode.c */ "iso8859-1,iso8859-7,iso8859-8,cp1251,iso8859-11,cp1256," "iso8859-9,iso8859-2,cp1250,cp1252,sjis,gb2312,ksx1001,big5,utf-8", @@ -1771,17 +1752,6 @@ const struct settings_list settings[] = { ID2P(LANG_CODEPAGE_JAPANESE), ID2P(LANG_CODEPAGE_SIMPLIFIED), ID2P(LANG_CODEPAGE_KOREAN), ID2P(LANG_CODEPAGE_TRADITIONAL), ID2P(LANG_CODEPAGE_UTF8)), -#else /* !HAVE_LCD_BITMAP */ - /* The order must match with that in unicode.c */ - "iso8859-1,iso8859-7,cp1251,iso8859-9,iso8859-2,cp1250,cp1252,utf-8", - NULL, 8, - ID2P(LANG_CODEPAGE_LATIN1), ID2P(LANG_CODEPAGE_GREEK), - ID2P(LANG_CODEPAGE_CYRILLIC), ID2P(LANG_CODEPAGE_TURKISH), - ID2P(LANG_CODEPAGE_LATIN_EXTENDED), - ID2P(LANG_CODEPAGE_CENTRAL_EUROPEAN), - ID2P(LANG_CODEPAGE_WESTERN_EUROPEAN), - ID2P(LANG_CODEPAGE_UTF8)), -#endif OFFON_SETTING(0, warnon_erase_dynplaylist, LANG_WARN_ERASEDYNPLAYLIST_MENU, true, "warn when erasing dynamic playlist",NULL), @@ -1805,12 +1775,10 @@ const struct settings_list settings[] = { OFFON_SETTING(0, hold_lr_for_scroll_in_list, -1, true, "hold_lr_for_scroll_in_list",NULL), -#ifdef HAVE_LCD_BITMAP CHOICE_SETTING(0, show_path_in_browser, LANG_SHOW_PATH, SHOW_PATH_CURRENT, "show path in browser", "off,current directory,full path", NULL, 3, ID2P(LANG_OFF), ID2P(LANG_SHOW_PATH_CURRENT), ID2P(LANG_DISPLAY_FULL_PATH)), -#endif #ifdef HAVE_AGC {F_T_INT,&global_settings.rec_agc_preset_mic,LANG_RECORDING_AGC_PRESET, @@ -1866,23 +1834,19 @@ const struct settings_list settings[] = { DEFAULT_FMS_NAME, SBS_DIR "/", ".rfms"), #endif #endif /* CONFIG_TUNER */ -#ifdef HAVE_LCD_BITMAP TEXT_SETTING(F_THEMESETTING, font_file, "font", DEFAULT_FONTNAME, FONT_DIR "/", ".fnt"), INT_SETTING(0, glyphs_to_cache, LANG_GLYPHS, DEFAULT_GLYPHS, "glyphs", UNIT_INT, MIN_GLYPHS, MAX_GLYPHS, 10, NULL, NULL, NULL), -#endif #ifdef HAVE_REMOTE_LCD TEXT_SETTING(F_THEMESETTING, remote_font_file, "remote font", DEFAULT_REMOTE_FONTNAME, FONT_DIR "/", ".fnt"), #endif TEXT_SETTING(F_THEMESETTING,wps_file, "wps", DEFAULT_WPSNAME, WPS_DIR "/", ".wps"), -#ifdef HAVE_LCD_BITMAP TEXT_SETTING(F_THEMESETTING,sbs_file, "sbs", DEFAULT_SBSNAME, SBS_DIR "/", ".sbs"), -#endif #ifdef HAVE_REMOTE_LCD TEXT_SETTING(F_THEMESETTING,rwps_file,"rwps", DEFAULT_WPSNAME, WPS_DIR "/", ".rwps"), @@ -1894,9 +1858,7 @@ const struct settings_list settings[] = { TEXT_SETTING(F_THEMESETTING,backdrop_file,"backdrop", DEFAULT_BACKDROP, NULL, NULL), #endif -#ifdef HAVE_LCD_BITMAP TEXT_SETTING(0,kbd_file,"kbd","-",ROCKBOX_DIR "/",".kbd"), -#endif #ifdef HAVE_USB_CHARGING_ENABLE CHOICE_SETTING(0, usb_charging, LANG_USB_CHARGING, 1, "usb charging", "off,on,force", NULL, 3, ID2P(LANG_SET_BOOL_NO), @@ -1965,13 +1927,11 @@ const struct settings_list settings[] = { #endif /* HAVE_RTC_ALARM */ /* Customizable icons */ -#ifdef HAVE_LCD_BITMAP TEXT_SETTING(F_THEMESETTING, icon_file, "iconset", DEFAULT_ICONSET, ICON_DIR "/", ".bmp"), TEXT_SETTING(F_THEMESETTING, viewers_icon_file, "viewers iconset", DEFAULT_VIEWERS_ICONSET, ICON_DIR "/", ".bmp"), -#endif #ifdef HAVE_REMOTE_LCD TEXT_SETTING(F_THEMESETTING, remote_icon_file, "remote iconset", "-", ICON_DIR "/", ".bmp"), @@ -2128,12 +2088,10 @@ const struct settings_list settings[] = { #endif /* Customizable list */ -#ifdef HAVE_LCD_BITMAP VIEWPORT_SETTING(ui_vp_config, "ui viewport"), #ifdef HAVE_REMOTE_LCD VIEWPORT_SETTING(remote_ui_vp_config, "remote ui viewport"), #endif -#endif #ifdef HAVE_MORSE_INPUT OFFON_SETTING(0, morse_input, LANG_MORSE_INPUT, false, "morse input", NULL), diff --git a/apps/tree.c b/apps/tree.c index e159c3465f..316139427d 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -399,9 +399,8 @@ static int update_dir(void) } } #ifdef HAVE_TAGCACHE - if (id3db) + if (id3db) { -#ifdef HAVE_LCD_BITMAP if (global_settings.show_path_in_browser == SHOW_PATH_FULL || global_settings.show_path_in_browser == SHOW_PATH_CURRENT) { @@ -412,13 +411,11 @@ static int update_dir(void) { /* Must clear the title as the list is reused */ gui_synclist_set_title(&tree_lists, NULL, NOICON); - } -#endif + } } else #endif { -#ifdef HAVE_LCD_BITMAP if (tc.browse && tc.browse->title) { int icon = tc.browse->icon; @@ -448,8 +445,7 @@ static int update_dir(void) { /* Must clear the title as the list is reused */ gui_synclist_set_title(&tree_lists, NULL, NOICON); - } -#endif + } } gui_synclist_set_nb_items(&tree_lists, tc.filesindir); @@ -606,9 +602,7 @@ static int dirbrowse(void) char buf[MAX_PATH]; int len; int button; -#ifdef HAVE_LCD_BITMAP int oldbutton; -#endif bool reload_root = false; int lastfilter = *tc.dirfilter; bool lastsortcase = global_settings.sort_case; @@ -643,7 +637,7 @@ static int dirbrowse(void) splash(HZ*2, ID2P(LANG_NO_FILES)); return GO_TO_PREVIOUS; /* No files found for rockbox_browse() */ } - + gui_synclist_draw(&tree_lists); while(1) { bool restore = false; @@ -653,9 +647,7 @@ static int dirbrowse(void) keyclick_set_callback(gui_synclist_keyclick_callback, &tree_lists); button = get_action(CONTEXT_TREE, list_do_action_timeout(&tree_lists, HZ/2)); -#ifdef HAVE_LCD_BITMAP oldbutton = button; -#endif gui_synclist_do_button(&tree_lists, &button,LIST_WRAP_UNLESS_HELD); tc.selected_item = gui_synclist_get_sel_pos(&tree_lists); switch ( button ) { diff --git a/docs/PLUGIN_API b/docs/PLUGIN_API index 7cd04cc410..b61e383977 100644 --- a/docs/PLUGIN_API +++ b/docs/PLUGIN_API @@ -185,7 +185,6 @@ unsigned int battery_voltage(void) \description unsigned short *bidi_l2v( const unsigned char *str, int orientation ) - \conditions defined(HAVE_LCD_BITMAP) \param str \param orientation \return @@ -332,7 +331,7 @@ bool button_hold(void) \description struct event_queue *button_queue - \conditions defined(HAVE_LCD_BITMAP) )) && (defined(HAVE_LCD_ENABLE + \conditions (defined(HAVE_LCD_ENABLE)) \return \description @@ -351,7 +350,6 @@ void cancel_cpu_boost(void) \description Unboosts the CPU for the current thread const unsigned char *font_get_bits( struct font *pf, unsigned short char_code ) - \conditions defined(HAVE_LCD_BITMAP) \param pf \param char_code \return @@ -601,14 +599,12 @@ void flush_icache(void) \description struct font* font_get(int font) - \conditions defined(HAVE_LCD_BITMAP) \param font \return the font structure for =font= \description If the requested font isn't loaded/compiled-in, decrement the font number and try again. \see [S[firmware/export/font.h]] int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber) - \conditions defined(HAVE_LCD_BITMAP) \param str \param w \param h @@ -617,14 +613,12 @@ int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber) \description int font_get_width(struct font* pf, unsigned short char_code) - \conditions defined(HAVE_LCD_BITMAP) \param pf \param char_code \return \description struct font* font_load(const char *path) - \conditions defined(HAVE_LCD_BITMAP) \param path \return \description Load font =path= and returns a struct font pointer for it @@ -678,7 +672,6 @@ struct system_status *global_status \see [S[apps/settings.h]] void gui_scrollbar_draw(struct screen * screen, int x, int y, int width, int height, int items, int min_shown, int max_shown, unsigned flags) - \conditions defined(HAVE_LCD_BITMAP) \param screen \param x \param y @@ -808,7 +801,7 @@ int kbd_input(char* buffer, int buflen) void lcd_bitmap(const fb_data *src, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \param src \param x \param y @@ -818,7 +811,7 @@ void lcd_bitmap(const fb_data *src, int x, int y, int width, int height) void lcd_bitmap_part(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \param src \param src_x \param src_y @@ -831,7 +824,7 @@ void lcd_bitmap_part(const fb_data *src, int src_x, int src_y, int stride, int x void lcd_bitmap_transparent(const fb_data *src, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH == 16) + \conditions (LCD_DEPTH >= 16) \param src \param x \param y @@ -841,7 +834,7 @@ void lcd_bitmap_transparent(const fb_data *src, int x, int y, int width, int hei void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, int stride, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH == 16) + \conditions (LCD_DEPTH >= 16) \param src \param src_x \param src_y @@ -854,7 +847,7 @@ void lcd_bitmap_transparent_part(const fb_data *src, int src_x, int src_y, int s void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases, int bx, int by, int bwidth, int bheight, int stride) \group lcd - \conditions defined(HAVE_LCD_BITMAP) )) && ((LCD_DEPTH < 4) && !defined(SIMULATOR + \conditions ((LCD_DEPTH < 4) && !defined(SIMULATOR)) \param values \param phases \param bx @@ -866,7 +859,7 @@ void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases, int bx, i void lcd_blit_mono(const unsigned char *data, int x, int by, int width, int bheight, int stride) \group lcd - \conditions defined(HAVE_LCD_BITMAP) )) && ((LCD_DEPTH < 4) && !defined(SIMULATOR + \conditions ((LCD_DEPTH < 4) && !defined(SIMULATOR)) \param data \param x \param by @@ -877,7 +870,7 @@ void lcd_blit_mono(const unsigned char *data, int x, int by, int width, int bhei void lcd_blit_yuv(unsigned char * const src[3], int src_x, int src_y, int stride, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH == 16) + \conditions (LCD_DEPTH >= 16) \param src[3] \param src_x \param src_y @@ -894,7 +887,6 @@ void lcd_clear_display(void) void lcd_drawline(int x1, int y1, int x2, int y2) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x1 X top coordinate \param y1 Y top coordinate \param x2 X bottom coordinate @@ -903,14 +895,12 @@ void lcd_drawline(int x1, int y1, int x2, int y2) void lcd_drawpixel(int x, int y) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x \param y \description Draws a pixel at (=x=, =y=) within current drawing mode void lcd_drawrect(int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x \param y \param width @@ -919,7 +909,6 @@ void lcd_drawrect(int x, int y, int width, int height) void lcd_fillrect(int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x \param y \param width @@ -928,7 +917,6 @@ void lcd_fillrect(int x, int y, int width, int height) fb_data* lcd_framebuffer \group lcd - \conditions defined(HAVE_LCD_BITMAP) \return \description Pointer to the framebuffer \see [S[firmware/export/lcd.h]] @@ -943,32 +931,30 @@ int lcd_getstringsize(const unsigned char *str, int *w, int *h) fb_data* lcd_get_backdrop(void) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \return Pointer to framebuffer data \description Gets the current backdrop \see lcd_framebuffer unsigned lcd_get_background(void) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \return \description int lcd_get_drawmode(void) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \return current LCD drawing mode \description unsigned lcd_get_foreground(void) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \return \description void lcd_hline(int x1, int x2, int y) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x1 X start coordinate \param x2 X end coordinate \param y Y coordinate @@ -976,7 +962,6 @@ void lcd_hline(int x1, int x2, int y) void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param src \param x \param y @@ -986,7 +971,6 @@ void lcd_mono_bitmap(const unsigned char *src, int x, int y, int width, int heig void lcd_mono_bitmap_part(const unsigned char *src, int src_x, int src_y, int stride, int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param src \param src_x \param src_y @@ -1230,20 +1214,19 @@ void lcd_remote_vline(int x, int y1, int y2) void lcd_setfont(int font) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param font \description Set default font void lcd_set_backdrop(fb_data* backdrop) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \param backdrop Pointer to backdrop image \description Set the backdrop to =backdrop= \see lcd_framebuffer void lcd_set_background(unsigned foreground) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \param foreground \description @@ -1254,19 +1237,18 @@ void lcd_set_contrast(int x) void lcd_set_drawmode(int mode) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param mode \description void lcd_set_foreground(unsigned foreground) \group lcd - \conditions defined(HAVE_LCD_BITMAP) && (LCD_DEPTH > 1) + \conditions (LCD_DEPTH > 1) \param foreground \description void lcd_set_invert_display(bool yesno) \group lcd - \conditions defined(HAVE_LCD_BITMAP) )) && (defined(HAVE_LCD_INVERT + \conditions (defined(HAVE_LCD_INVERT)) \param yesno \description @@ -1280,7 +1262,6 @@ void lcd_update(void) void lcd_update_rect(int x, int y, int width, int height) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x measured in pixels \param y measured in pixels \param width measured in pixels @@ -1289,7 +1270,6 @@ void lcd_update_rect(int x, int y, int width, int height) void lcd_vline(int x, int y1, int y2) \group lcd - \conditions defined(HAVE_LCD_BITMAP) \param x X coordinate \param y1 Y start coordinate \param y2 Y end coordinate @@ -1297,7 +1277,7 @@ void lcd_vline(int x, int y1, int y2) void lcd_yuv_set_options(unsigned options) \group lcd - \conditions defined(HAVE_LCD_BITMAP) )) && (LCD_DEPTH == 16) && (defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) || defined(IRIVER_H10) || defined(COWON_D2 + \conditions (LCD_DEPTH >= 16) && (defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200) || defined(IRIVER_H10) || defined(COWON_D2)) \param options \description @@ -1762,7 +1742,6 @@ struct dirent* readdir(DIR* dir) \description int read_bmp_file(const char* filename, struct bitmap *bm, int maxsize, int format) - \conditions (defined(HAVE_LCD_BITMAP)) \param filename \param bm \param maxsize @@ -1820,7 +1799,6 @@ struct screen* screens[NB_SCREENS] \description void screen_clear_area(struct screen * display, int xstart, int ystart, int width, int height) - \conditions defined(HAVE_LCD_BITMAP) \param display \param xstart \param ystart @@ -1829,7 +1807,6 @@ void screen_clear_area(struct screen * display, int xstart, int ystart, int widt \description void screen_dump_set_hook(void (*hook)(int fh)) - \conditions (defined(HAVE_LCD_BITMAP)) \param hook \description @@ -1962,14 +1939,14 @@ bool simplelist_show_list(struct simplelist_info *info) void sim_lcd_ex_init(int shades, unsigned long (*getpixel)(int, int)) \group special simulator hooks - \conditions (defined(SIMULATOR)) && (defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8) + \conditions (defined(SIMULATOR) && LCD_DEPTH < 8)) \param shades \param getpixel \description void sim_lcd_ex_update_rect(int x, int y, int width, int height) \group special simulator hooks - \conditions (defined(SIMULATOR)) && (defined(HAVE_LCD_BITMAP) && LCD_DEPTH < 8) + \conditions (defined(SIMULATOR) LCD_DEPTH < 8)) \param x \param y \param width diff --git a/firmware/SOURCES b/firmware/SOURCES index cc1dca3557..a68d10ec76 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -50,9 +50,7 @@ panic.c #ifdef HAVE_SDL target/hosted/sdl/button-sdl.c target/hosted/sdl/kernel-sdl.c -#ifdef HAVE_LCD_BITMAP target/hosted/sdl/lcd-bitmap.c -#endif #ifdef HAVE_REMOTE_LCD target/hosted/sdl/lcd-remote-bitmap.c #endif @@ -253,7 +251,6 @@ common/vuprintf.c /* Display */ scroll_engine.c -#ifdef HAVE_LCD_BITMAP arabjoin.c bidi.c font_cache.c @@ -283,7 +280,6 @@ drivers/lcd-16bit.c drivers/lcd-24bit.c #endif /* LCD_DEPTH */ common/diacritic.c -#endif /* HAVE_LCD_BITMAP */ #ifdef HAVE_REMOTE_LCD #if LCD_REMOTE_DEPTH == 1 diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c index eb0af7092c..f0f663f712 100644 --- a/firmware/common/unicode.c +++ b/firmware/common/unicode.c @@ -88,8 +88,6 @@ struct cp_info const char *name; }; -#ifdef HAVE_LCD_BITMAP - #define MAX_CP_TABLE_SIZE 32768 #define CPF_ISO "iso.cp" @@ -118,27 +116,6 @@ static const struct cp_info cp_info[NUM_CODEPAGES+1] = [UTF_8] = { CP_TID_NONE, NULL , "UTF-8" }, }; -#else /* !HAVE_LCD_BITMAP, reduced support */ - -#define MAX_CP_TABLE_SIZE 768 - -#define CPF_ISOMINI "isomini.cp" - -static const struct cp_info cp_info[NUM_CODEPAGES+1] = -{ - [0 ... NUM_CODEPAGES] = { CP_TID_NONE, NULL , "unknown" }, - [ISO_8859_1] = { CP_TID_NONE, NULL , "ISO-8859-1" }, - [ISO_8859_7] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-7" }, - [WIN_1251] = { CP_TID_ISO , CPF_ISOMINI, "CP1251" }, - [ISO_8859_9] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-9" }, - [ISO_8859_2] = { CP_TID_ISO , CPF_ISOMINI, "ISO-8859-2" }, - [WIN_1250] = { CP_TID_ISO , CPF_ISOMINI, "CP1250" }, - [WIN_1252] = { CP_TID_ISO , CPF_ISOMINI, "CP1252" }, - [UTF_8] = { CP_TID_ISO , NULL , "UTF-8" }, -}; - -#endif /* HAVE_LCD_BITMAP */ - static int default_cp = INIT_CODEPAGE; static int default_cp_tid = CP_TID_NONE; static int default_cp_handle = 0; @@ -368,7 +345,6 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, ucs = table[tmp]; break; -#ifdef HAVE_LCD_BITMAP case CP_TID_932: /* Japanese */ if (*iso > 0xA0 && *iso < 0xE0) { tmp = *iso++ | (0xA100 - 0x8000); @@ -392,7 +368,6 @@ unsigned char* iso_decode(const unsigned char *iso, unsigned char *utf8, ucs = table[tmp]; count--; break; -#endif /* HAVE_LCD_BITMAP */ default: ucs = *iso++; diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index c81b629f6d..f2408d891e 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -50,9 +50,7 @@ struct event_queue button_queue SHAREDBSS_ATTR; static long lastbtn; /* Last valid button status */ static long last_read; /* Last button status, for debouncing/filtering */ static intptr_t button_data; /* data value from last message dequeued */ -#ifdef HAVE_LCD_BITMAP static bool flipped; /* buttons can be flipped to match the LCD flip */ -#endif #ifdef HAVE_BACKLIGHT static bool filter_first_keypress; #ifdef HAVE_REMOTE_LCD @@ -535,9 +533,7 @@ void button_init(void) reset_poweroff_timer(); -#ifdef HAVE_LCD_BITMAP flipped = false; -#endif #ifdef HAVE_BACKLIGHT filter_first_keypress = false; #ifdef HAVE_REMOTE_LCD diff --git a/firmware/drivers/lcd-scroll.c b/firmware/drivers/lcd-scroll.c index 7916556dfb..5d66788093 100644 --- a/firmware/drivers/lcd-scroll.c +++ b/firmware/drivers/lcd-scroll.c @@ -39,9 +39,7 @@ struct scroll_screen_info LCDFN(scroll_info) = .ticks = 12, .delay = HZ/2, .bidir_limit = 50, -#ifdef HAVE_LCD_BITMAP .step = 6, -#endif }; @@ -100,12 +98,10 @@ void LCDFN(scroll_speed)(int speed) LCDFN(scroll_info).ticks = scroll_tick_table[speed]; } -#if defined(HAVE_LCD_BITMAP) void LCDFN(scroll_step)(int step) { LCDFN(scroll_info).step = step; } -#endif void LCDFN(scroll_delay)(int ms) { @@ -162,7 +158,6 @@ bool LCDFN(scroll_now)(struct scrollinfo *s) /* Stash and restore these three, so that the scroll_func * can do whatever it likes without destroying the state */ -#ifdef HAVE_LCD_BITMAP unsigned drawmode; #if LCD_DEPTH > 1 unsigned fg_pattern, bg_pattern; @@ -170,18 +165,15 @@ bool LCDFN(scroll_now)(struct scrollinfo *s) bg_pattern = s->vp->bg_pattern; #endif drawmode = s->vp->drawmode; -#endif s->scroll_func(s); LCDFN(update_viewport_rect)(s->x, s->y, s->width, s->height); -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH > 1 s->vp->fg_pattern = fg_pattern; s->vp->bg_pattern = bg_pattern; #endif s->vp->drawmode = drawmode; -#endif return ended; } @@ -216,12 +208,7 @@ static void LCDFN(scroll_worker)(void) LCDFN(set_viewport)(s->vp); makedelay = false; -#ifdef HAVE_LCD_BITMAP step = si->step; -#else - step = 1; -#endif - if (s->backward) s->offset -= step; diff --git a/firmware/export/button.h b/firmware/export/button.h index 36b615f216..1745947230 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h @@ -59,9 +59,7 @@ int button_status(void); int button_status_wdata(int *pdata); #endif void button_clear_queue(void); -#ifdef HAVE_LCD_BITMAP void button_set_flip(bool flip); /* turn 180 degrees */ -#endif #ifdef HAVE_BACKLIGHT void set_backlight_filter_keypress(bool value); #ifdef HAVE_REMOTE_LCD diff --git a/firmware/export/config.h b/firmware/export/config.h index e4397517db..65fdc6a03c 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -896,7 +896,7 @@ Lyre prototype 1 */ #endif #endif -#if defined(HAVE_TAGCACHE) && defined(HAVE_LCD_BITMAP) +#if defined(HAVE_TAGCACHE) #define HAVE_PICTUREFLOW_INTEGRATION #endif diff --git a/firmware/export/config/agptekrocker.h b/firmware/export/config/agptekrocker.h index 3d5565f1d9..b0ed88d113 100644 --- a/firmware/export/config/agptekrocker.h +++ b/firmware/export/config/agptekrocker.h @@ -17,8 +17,8 @@ #define CONFIG_PLATFORM (PLATFORM_HOSTED) #endif -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/android.h b/firmware/export/config/android.h index fa95ade999..8f91d21845 100644 --- a/firmware/export/config/android.h +++ b/firmware/export/config/android.h @@ -12,8 +12,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/cowond2.h b/firmware/export/config/cowond2.h index f0e117dd7a..81a2a85018 100644 --- a/firmware/export/config/cowond2.h +++ b/firmware/export/config/cowond2.h @@ -24,8 +24,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezen.h b/firmware/export/config/creativezen.h index 234556dd23..2592325160 100644 --- a/firmware/export/config/creativezen.h +++ b/firmware/export/config/creativezen.h @@ -27,8 +27,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenmozaic.h b/firmware/export/config/creativezenmozaic.h index c8397f26bb..0ffe8ed45b 100644 --- a/firmware/export/config/creativezenmozaic.h +++ b/firmware/export/config/creativezenmozaic.h @@ -25,8 +25,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenv.h b/firmware/export/config/creativezenv.h index fcdc39242f..288c2aecbd 100644 --- a/firmware/export/config/creativezenv.h +++ b/firmware/export/config/creativezenv.h @@ -25,8 +25,8 @@ explicitly if different */ #define INPUT_SRC_CAPS SRC_CAP_MIC -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenxfi.h b/firmware/export/config/creativezenxfi.h index 2eb747687a..977e11feff 100644 --- a/firmware/export/config/creativezenxfi.h +++ b/firmware/export/config/creativezenxfi.h @@ -25,8 +25,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenxfi2.h b/firmware/export/config/creativezenxfi2.h index 9e5c748cd9..3a14017bf2 100644 --- a/firmware/export/config/creativezenxfi2.h +++ b/firmware/export/config/creativezenxfi2.h @@ -27,8 +27,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenxfi3.h b/firmware/export/config/creativezenxfi3.h index a3626800bd..5139de0588 100644 --- a/firmware/export/config/creativezenxfi3.h +++ b/firmware/export/config/creativezenxfi3.h @@ -27,8 +27,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezenxfistyle.h b/firmware/export/config/creativezenxfistyle.h index afb2b18db4..41f5ce97b8 100644 --- a/firmware/export/config/creativezenxfistyle.h +++ b/firmware/export/config/creativezenxfistyle.h @@ -25,8 +25,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/creativezv.h b/firmware/export/config/creativezv.h index a38c72afaa..54312e9071 100644 --- a/firmware/export/config/creativezv.h +++ b/firmware/export/config/creativezv.h @@ -41,8 +41,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/gigabeatfx.h b/firmware/export/config/gigabeatfx.h index 2382cb9d43..738d7a8eec 100644 --- a/firmware/export/config/gigabeatfx.h +++ b/firmware/export/config/gigabeatfx.h @@ -15,8 +15,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h index 1a60fff38f..ba71c5a400 100644 --- a/firmware/export/config/gigabeats.h +++ b/firmware/export/config/gigabeats.h @@ -22,8 +22,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/gogearhdd1630.h b/firmware/export/config/gogearhdd1630.h index 4a4f7b10d4..e1e40cee0b 100644 --- a/firmware/export/config/gogearhdd1630.h +++ b/firmware/export/config/gogearhdd1630.h @@ -27,8 +27,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/gogearhdd6330.h b/firmware/export/config/gogearhdd6330.h index 921ca637f2..964e725184 100644 --- a/firmware/export/config/gogearhdd6330.h +++ b/firmware/export/config/gogearhdd6330.h @@ -27,8 +27,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/gogearsa9200.h b/firmware/export/config/gogearsa9200.h index c1aeb527cd..0a4dbad006 100644 --- a/firmware/export/config/gogearsa9200.h +++ b/firmware/export/config/gogearsa9200.h @@ -8,8 +8,8 @@ #define HW_SAMPR_CAPS (SAMPR_CAP_44) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/hifietma8.h b/firmware/export/config/hifietma8.h index 48c4145c80..a9b94227d8 100644 --- a/firmware/export/config/hifietma8.h +++ b/firmware/export/config/hifietma8.h @@ -15,8 +15,8 @@ #define HAVE_PCM1792_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/hifietma8c.h b/firmware/export/config/hifietma8c.h index 72b5ea7ee4..009c4ee353 100644 --- a/firmware/export/config/hifietma8c.h +++ b/firmware/export/config/hifietma8c.h @@ -15,8 +15,8 @@ #define HAVE_PCM1792_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/hifietma9.h b/firmware/export/config/hifietma9.h index 6b96afde08..454b3b17ff 100644 --- a/firmware/export/config/hifietma9.h +++ b/firmware/export/config/hifietma9.h @@ -15,8 +15,8 @@ #define HAVE_DF1704_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/hifietma9c.h b/firmware/export/config/hifietma9c.h index 5bdb28cd6e..e9817e40d6 100644 --- a/firmware/export/config/hifietma9c.h +++ b/firmware/export/config/hifietma9c.h @@ -15,8 +15,8 @@ #define HAVE_DF1704_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/hifimanhm60x.h b/firmware/export/config/hifimanhm60x.h index fc718ba935..84f65f1c81 100644 --- a/firmware/export/config/hifimanhm60x.h +++ b/firmware/export/config/hifimanhm60x.h @@ -18,8 +18,8 @@ #define HAVE_DUMMY_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/hifimanhm801.h b/firmware/export/config/hifimanhm801.h index 049c4a40b5..0879cd2980 100644 --- a/firmware/export/config/hifimanhm801.h +++ b/firmware/export/config/hifimanhm801.h @@ -15,8 +15,8 @@ #define HAVE_DUMMY_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/iaudio7.h b/firmware/export/config/iaudio7.h index 0cc8b19787..698ff13724 100644 --- a/firmware/export/config/iaudio7.h +++ b/firmware/export/config/iaudio7.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/iaudiom3.h b/firmware/export/config/iaudiom3.h index 06ada6b8d5..1ed31b4d46 100644 --- a/firmware/export/config/iaudiom3.h +++ b/firmware/export/config/iaudiom3.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/iaudiom5.h b/firmware/export/config/iaudiom5.h index 9619fd36bb..a597590508 100644 --- a/firmware/export/config/iaudiom5.h +++ b/firmware/export/config/iaudiom5.h @@ -30,8 +30,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/iaudiox5.h b/firmware/export/config/iaudiox5.h index 0b520bf12c..fc97f71813 100644 --- a/firmware/export/config/iaudiox5.h +++ b/firmware/export/config/iaudiox5.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ #define HAVE_LCD_FLIP diff --git a/firmware/export/config/ibassodx50.h b/firmware/export/config/ibassodx50.h index 9ebad8b120..9f5e343978 100644 --- a/firmware/export/config/ibassodx50.h +++ b/firmware/export/config/ibassodx50.h @@ -33,8 +33,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ibassodx90.h b/firmware/export/config/ibassodx90.h index 7f8b3725c8..8155cec5aa 100644 --- a/firmware/export/config/ibassodx90.h +++ b/firmware/export/config/ibassodx90.h @@ -33,8 +33,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ihifi760.h b/firmware/export/config/ihifi760.h index 06ed3640a3..d58d6b9dfb 100644 --- a/firmware/export/config/ihifi760.h +++ b/firmware/export/config/ihifi760.h @@ -18,8 +18,8 @@ #define HAVE_DUMMY_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/ihifi770.h b/firmware/export/config/ihifi770.h index f2c28bee2d..60bf4c844d 100644 --- a/firmware/export/config/ihifi770.h +++ b/firmware/export/config/ihifi770.h @@ -19,8 +19,8 @@ #define HAVE_WM8740 #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/ihifi770c.h b/firmware/export/config/ihifi770c.h index 589ef44046..087557e24b 100644 --- a/firmware/export/config/ihifi770c.h +++ b/firmware/export/config/ihifi770c.h @@ -19,8 +19,8 @@ #define HAVE_WM8740 #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/ihifi800.h b/firmware/export/config/ihifi800.h index 9ee488111c..be68b49abf 100644 --- a/firmware/export/config/ihifi800.h +++ b/firmware/export/config/ihifi800.h @@ -19,8 +19,8 @@ #define HAVE_ES9018 #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/ihifi960.h b/firmware/export/config/ihifi960.h index 9b0c1fe7e2..9f8b3ef443 100644 --- a/firmware/export/config/ihifi960.h +++ b/firmware/export/config/ihifi960.h @@ -18,8 +18,8 @@ #define HAVE_DUMMY_CODEC #define CODEC_SLAVE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/ipod1g2g.h b/firmware/export/config/ipod1g2g.h index 5dfac2e0c3..057b0fab48 100644 --- a/firmware/export/config/ipod1g2g.h +++ b/firmware/export/config/ipod1g2g.h @@ -26,8 +26,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/ipod3g.h b/firmware/export/config/ipod3g.h index 3914d9f654..ae94ea7d63 100644 --- a/firmware/export/config/ipod3g.h +++ b/firmware/export/config/ipod3g.h @@ -26,8 +26,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/ipod4g.h b/firmware/export/config/ipod4g.h index e838174701..49996c4eee 100644 --- a/firmware/export/config/ipod4g.h +++ b/firmware/export/config/ipod4g.h @@ -28,8 +28,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_44) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h index d3c4805389..cb3ab31139 100644 --- a/firmware/export/config/ipod6g.h +++ b/firmware/export/config/ipod6g.h @@ -38,8 +38,8 @@ | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \ | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h index 6292b97d58..93bea58daa 100644 --- a/firmware/export/config/ipodcolor.h +++ b/firmware/export/config/ipodcolor.h @@ -28,8 +28,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_44) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h index 84481550f1..abcf237aa9 100644 --- a/firmware/export/config/ipodmini1g.h +++ b/firmware/export/config/ipodmini1g.h @@ -28,8 +28,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h index ffc566920d..f11681978c 100644 --- a/firmware/export/config/ipodmini2g.h +++ b/firmware/export/config/ipodmini2g.h @@ -28,8 +28,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h index 8ca7544dbe..d919435cbd 100644 --- a/firmware/export/config/ipodnano1g.h +++ b/firmware/export/config/ipodnano1g.h @@ -28,8 +28,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_44) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ipodnano2g.h b/firmware/export/config/ipodnano2g.h index 362258a822..9445b2809a 100644 --- a/firmware/export/config/ipodnano2g.h +++ b/firmware/export/config/ipodnano2g.h @@ -26,8 +26,8 @@ | SAMPR_CAP_96 | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \ | SAMPR_CAP_64 | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/ipodvideo.h b/firmware/export/config/ipodvideo.h index d48f7e3387..4385d74fda 100644 --- a/firmware/export/config/ipodvideo.h +++ b/firmware/export/config/ipodvideo.h @@ -30,8 +30,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS HW_SAMPR_CAPS -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/iriverh10.h b/firmware/export/config/iriverh10.h index ed3157020a..91ed963b0b 100644 --- a/firmware/export/config/iriverh10.h +++ b/firmware/export/config/iriverh10.h @@ -26,8 +26,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/iriverh100.h b/firmware/export/config/iriverh100.h index 798ee27f44..3cff24de4f 100644 --- a/firmware/export/config/iriverh100.h +++ b/firmware/export/config/iriverh100.h @@ -14,8 +14,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h index b75e834a1f..d1ec64090e 100644 --- a/firmware/export/config/iriverh10_5gb.h +++ b/firmware/export/config/iriverh10_5gb.h @@ -26,8 +26,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/iriverh120.h b/firmware/export/config/iriverh120.h index e1cfda768b..70670a0418 100644 --- a/firmware/export/config/iriverh120.h +++ b/firmware/export/config/iriverh120.h @@ -14,8 +14,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/iriverh300.h b/firmware/export/config/iriverh300.h index 15c5448aed..e2f16d2b4e 100644 --- a/firmware/export/config/iriverh300.h +++ b/firmware/export/config/iriverh300.h @@ -14,8 +14,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/iriverifp7xx.h b/firmware/export/config/iriverifp7xx.h index cb48d9713d..0db9a7810d 100644 --- a/firmware/export/config/iriverifp7xx.h +++ b/firmware/export/config/iriverifp7xx.h @@ -12,8 +12,8 @@ /* define this if you have recording possibility */ /*#define HAVE_RECORDING*/ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you would like tagcache to build on this target */ /* #define HAVE_TAGCACHE */ diff --git a/firmware/export/config/logikdax.h b/firmware/export/config/logikdax.h index 5f35c6e725..47229f7a1d 100644 --- a/firmware/export/config/logikdax.h +++ b/firmware/export/config/logikdax.h @@ -21,8 +21,8 @@ #endif -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ #define HAVE_LCD_FLIP diff --git a/firmware/export/config/lyreproto1.h b/firmware/export/config/lyreproto1.h index 5281a4a864..4cde26879c 100644 --- a/firmware/export/config/lyreproto1.h +++ b/firmware/export/config/lyreproto1.h @@ -33,8 +33,8 @@ #define CONFIG_STORAGE STORAGE_SD #define HAVE_FLASH_STORAGE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/meizum3.h b/firmware/export/config/meizum3.h index 161330d38f..c770790d47 100644 --- a/firmware/export/config/meizum3.h +++ b/firmware/export/config/meizum3.h @@ -20,8 +20,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/meizum6sl.h b/firmware/export/config/meizum6sl.h index 267950b9e2..95841c8465 100644 --- a/firmware/export/config/meizum6sl.h +++ b/firmware/export/config/meizum6sl.h @@ -20,8 +20,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/meizum6sp.h b/firmware/export/config/meizum6sp.h index dc9e2f657e..13b4d2e6b5 100644 --- a/firmware/export/config/meizum6sp.h +++ b/firmware/export/config/meizum6sp.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/mini2440.h b/firmware/export/config/mini2440.h index f78c101c80..5f57606378 100644 --- a/firmware/export/config/mini2440.h +++ b/firmware/export/config/mini2440.h @@ -50,8 +50,8 @@ /* #define HAVE_DISK_STORAGE */ /* Display */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR /* The LCD is assumed to be 3.5" TFT touch screen, others are possible */ diff --git a/firmware/export/config/mpiohd200.h b/firmware/export/config/mpiohd200.h index da2420b814..1d367e4b20 100644 --- a/firmware/export/config/mpiohd200.h +++ b/firmware/export/config/mpiohd200.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/mpiohd300.h b/firmware/export/config/mpiohd300.h index bf0821e1a9..fe17ec16b5 100644 --- a/firmware/export/config/mpiohd300.h +++ b/firmware/export/config/mpiohd300.h @@ -26,8 +26,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/mrobe100.h b/firmware/export/config/mrobe100.h index f2ecb5a6f0..bb636f7625 100644 --- a/firmware/export/config/mrobe100.h +++ b/firmware/export/config/mrobe100.h @@ -12,8 +12,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have access to the quickscreen */ #define HAVE_QUICKSCREEN diff --git a/firmware/export/config/mrobe500.h b/firmware/export/config/mrobe500.h index 82a4ef28d1..57d13cf1ab 100644 --- a/firmware/export/config/mrobe500.h +++ b/firmware/export/config/mrobe500.h @@ -41,8 +41,8 @@ /* Define this to add support for ATA DMA */ //#define HAVE_ATA_DMA -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/nokian8xx.h b/firmware/export/config/nokian8xx.h index 4204fddf1d..c1585251e8 100644 --- a/firmware/export/config/nokian8xx.h +++ b/firmware/export/config/nokian8xx.h @@ -12,8 +12,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/nokian900.h b/firmware/export/config/nokian900.h index bf692af312..1050763623 100644 --- a/firmware/export/config/nokian900.h +++ b/firmware/export/config/nokian900.h @@ -12,8 +12,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ondavx747.h b/firmware/export/config/ondavx747.h index e14edb3e37..fe5a772167 100644 --- a/firmware/export/config/ondavx747.h +++ b/firmware/export/config/ondavx747.h @@ -40,8 +40,8 @@ /* ChinaChip NAND FTL */ #define CONFIG_NAND NAND_CC -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ondavx767.h b/firmware/export/config/ondavx767.h index dbad0b6a95..ee65702fe0 100644 --- a/firmware/export/config/ondavx767.h +++ b/firmware/export/config/ondavx767.h @@ -43,8 +43,8 @@ #define HAVE_MULTIDRIVE #define NUM_DRIVES 2 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/ondavx777.h b/firmware/export/config/ondavx777.h index 7225096237..e03a0cdd04 100644 --- a/firmware/export/config/ondavx777.h +++ b/firmware/export/config/ondavx777.h @@ -34,8 +34,8 @@ /* ChinaChip NAND FTL */ #define CONFIG_NAND NAND_CC -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/pandora.h b/firmware/export/config/pandora.h index 27745073ec..3b26ad9b7b 100644 --- a/firmware/export/config/pandora.h +++ b/firmware/export/config/pandora.h @@ -12,8 +12,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/rk27generic.h b/firmware/export/config/rk27generic.h index c116f17603..369974abb7 100644 --- a/firmware/export/config/rk27generic.h +++ b/firmware/export/config/rk27generic.h @@ -25,8 +25,8 @@ | SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \ | SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ /* #define HAVE_LCD_FLIP */ diff --git a/firmware/export/config/samsungyh820.h b/firmware/export/config/samsungyh820.h index 4980084a07..b04ae1c0ea 100644 --- a/firmware/export/config/samsungyh820.h +++ b/firmware/export/config/samsungyh820.h @@ -76,8 +76,8 @@ /* put the lcd frame buffer in IRAM */ /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/samsungyh920.h b/firmware/export/config/samsungyh920.h index aaf93609b0..8367f06731 100644 --- a/firmware/export/config/samsungyh920.h +++ b/firmware/export/config/samsungyh920.h @@ -72,8 +72,8 @@ /* put the lcd frame buffer in IRAM */ /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you want album art for this target */ #define HAVE_ALBUMART diff --git a/firmware/export/config/samsungyh925.h b/firmware/export/config/samsungyh925.h index 10e9743f3a..8e467550d8 100644 --- a/firmware/export/config/samsungyh925.h +++ b/firmware/export/config/samsungyh925.h @@ -66,8 +66,8 @@ /* put the lcd frame buffer in IRAM */ /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/samsungypr0.h b/firmware/export/config/samsungypr0.h index e9596fb9cc..414ba39517 100644 --- a/firmware/export/config/samsungypr0.h +++ b/firmware/export/config/samsungypr0.h @@ -14,8 +14,8 @@ #define MODEL_NAME "Samsung YP-R0" -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/samsungypr1.h b/firmware/export/config/samsungypr1.h index 0021f81a52..4d5c4a88f9 100644 --- a/firmware/export/config/samsungypr1.h +++ b/firmware/export/config/samsungypr1.h @@ -14,8 +14,8 @@ #define MODEL_NAME "Samsung YP-R1" -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/samsungyps3.h b/firmware/export/config/samsungyps3.h index 3707507f72..6306d23102 100644 --- a/firmware/export/config/samsungyps3.h +++ b/firmware/export/config/samsungyps3.h @@ -20,8 +20,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ //#define HAVE_LCD_FLIP diff --git a/firmware/export/config/samsungypz5.h b/firmware/export/config/samsungypz5.h index 8c013e7c29..c890d629f1 100644 --- a/firmware/export/config/samsungypz5.h +++ b/firmware/export/config/samsungypz5.h @@ -28,8 +28,8 @@ #define HAVE_FMRADIO_IN #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansac100.h b/firmware/export/config/sansac100.h index 7e984762d6..c2956eed12 100644 --- a/firmware/export/config/sansac100.h +++ b/firmware/export/config/sansac100.h @@ -10,8 +10,8 @@ /* define hardware samples rate caps mask */ #define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansac200.h b/firmware/export/config/sansac200.h index 1eed043b8c..4d5bf17256 100644 --- a/firmware/export/config/sansac200.h +++ b/firmware/export/config/sansac200.h @@ -24,8 +24,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansac200v2.h b/firmware/export/config/sansac200v2.h index e98b44d0e8..66e02f9738 100644 --- a/firmware/export/config/sansac200v2.h +++ b/firmware/export/config/sansac200v2.h @@ -26,8 +26,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansaclip.h b/firmware/export/config/sansaclip.h index 70f66779a4..84970e820d 100644 --- a/firmware/export/config/sansaclip.h +++ b/firmware/export/config/sansaclip.h @@ -26,8 +26,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a light associated with the buttons */ #define HAVE_BUTTON_LIGHT diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h index 54ffdb1071..d4638a1acd 100644 --- a/firmware/export/config/sansaclipplus.h +++ b/firmware/export/config/sansaclipplus.h @@ -37,8 +37,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have access to the quickscreen */ #define HAVE_QUICKSCREEN diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h index 04c2efacfa..df5e15d369 100644 --- a/firmware/export/config/sansaclipv2.h +++ b/firmware/export/config/sansaclipv2.h @@ -28,8 +28,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a light associated with the buttons */ #define HAVE_BUTTON_LIGHT diff --git a/firmware/export/config/sansaclipzip.h b/firmware/export/config/sansaclipzip.h index 9513b0074c..01ba0e1346 100644 --- a/firmware/export/config/sansaclipzip.h +++ b/firmware/export/config/sansaclipzip.h @@ -38,8 +38,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansaconnect.h b/firmware/export/config/sansaconnect.h index 8ad4cab396..465a576664 100644 --- a/firmware/export/config/sansaconnect.h +++ b/firmware/export/config/sansaconnect.h @@ -42,8 +42,8 @@ #define HAVE_HOTSWAP #define HAVE_HOTSWAP_STORAGE_AS_MAIN -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansae200.h b/firmware/export/config/sansae200.h index af9baa3202..e03784a204 100644 --- a/firmware/export/config/sansae200.h +++ b/firmware/export/config/sansae200.h @@ -24,8 +24,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansae200v2.h b/firmware/export/config/sansae200v2.h index 604f51db23..211fee701b 100644 --- a/firmware/export/config/sansae200v2.h +++ b/firmware/export/config/sansae200v2.h @@ -24,8 +24,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansafuze.h b/firmware/export/config/sansafuze.h index e918cd888f..fb17923e90 100644 --- a/firmware/export/config/sansafuze.h +++ b/firmware/export/config/sansafuze.h @@ -34,8 +34,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansafuzeplus.h b/firmware/export/config/sansafuzeplus.h index bd587be11a..0306b4d14a 100644 --- a/firmware/export/config/sansafuzeplus.h +++ b/firmware/export/config/sansafuzeplus.h @@ -29,8 +29,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR #define HAVE_LCD_FLIP diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h index 1fa03cf6be..6c42e58f7a 100644 --- a/firmware/export/config/sansafuzev2.h +++ b/firmware/export/config/sansafuzev2.h @@ -34,8 +34,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sansam200.h b/firmware/export/config/sansam200.h index 044802550e..95647013e7 100644 --- a/firmware/export/config/sansam200.h +++ b/firmware/export/config/sansam200.h @@ -17,8 +17,8 @@ explicitly if different */ //#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | SRC_CAP_SPDIF) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ #define HAVE_LCD_FLIP diff --git a/firmware/export/config/sansam200v4.h b/firmware/export/config/sansam200v4.h index 7415ba7dae..b6ebaf4266 100644 --- a/firmware/export/config/sansam200v4.h +++ b/firmware/export/config/sansam200v4.h @@ -28,8 +28,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ #define HAVE_LCD_FLIP diff --git a/firmware/export/config/sansaview.h b/firmware/export/config/sansaview.h index 1057c5e817..78458fe3fc 100644 --- a/firmware/export/config/sansaview.h +++ b/firmware/export/config/sansaview.h @@ -19,8 +19,8 @@ explicitly if different */ #define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_FMRADIO) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sdlapp.h b/firmware/export/config/sdlapp.h index dde0b2783c..038e1d8c8e 100644 --- a/firmware/export/config/sdlapp.h +++ b/firmware/export/config/sdlapp.h @@ -12,8 +12,8 @@ #define USB_NONE -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sonynwze360.h b/firmware/export/config/sonynwze360.h index 0049f13123..7240070ba4 100644 --- a/firmware/export/config/sonynwze360.h +++ b/firmware/export/config/sonynwze360.h @@ -17,8 +17,8 @@ explicitly if different */ #define INPUT_SRC_CAPS SRC_CAP_FMRADIO -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sonynwze370.h b/firmware/export/config/sonynwze370.h index f0e6d08e0d..08c5c4a99f 100644 --- a/firmware/export/config/sonynwze370.h +++ b/firmware/export/config/sonynwze370.h @@ -17,8 +17,8 @@ explicitly if different */ #define INPUT_SRC_CAPS SRC_CAP_FMRADIO -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/sonynwzlinux.h b/firmware/export/config/sonynwzlinux.h index 771cef57bb..66f18724db 100644 --- a/firmware/export/config/sonynwzlinux.h +++ b/firmware/export/config/sonynwzlinux.h @@ -6,8 +6,8 @@ #define CONFIG_PLATFORM (PLATFORM_HOSTED) #endif -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/tatungtpj1022.h b/firmware/export/config/tatungtpj1022.h index 7f3b579c49..3865e8f87f 100644 --- a/firmware/export/config/tatungtpj1022.h +++ b/firmware/export/config/tatungtpj1022.h @@ -24,8 +24,8 @@ #define REC_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \ SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_8) */ -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/vibe500.h b/firmware/export/config/vibe500.h index 0626fe1078..0444a2e065 100644 --- a/firmware/export/config/vibe500.h +++ b/firmware/export/config/vibe500.h @@ -25,8 +25,8 @@ /* define the bitmask of recording sample rates */ #define REC_SAMPR_CAPS (SAMPR_CAP_88 | SAMPR_CAP_44 | SAMPR_CAP_22 | SAMPR_CAP_11) -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you can flip your LCD */ #define HAVE_LCD_FLIP diff --git a/firmware/export/config/xduoox20.h b/firmware/export/config/xduoox20.h index b453e42a9c..7d298112c6 100644 --- a/firmware/export/config/xduoox20.h +++ b/firmware/export/config/xduoox20.h @@ -17,8 +17,8 @@ #define CONFIG_PLATFORM (PLATFORM_HOSTED) #endif -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h index 3d35555ebf..7efeaf3b2f 100644 --- a/firmware/export/config/xduoox3.h +++ b/firmware/export/config/xduoox3.h @@ -17,8 +17,8 @@ /* ChinaChip NAND FTL */ #define CONFIG_NAND NAND_CC -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have access to the quickscreen */ #define HAVE_QUICKSCREEN diff --git a/firmware/export/config/xduoox3ii.h b/firmware/export/config/xduoox3ii.h index fb72532993..e9bf8ba51c 100644 --- a/firmware/export/config/xduoox3ii.h +++ b/firmware/export/config/xduoox3ii.h @@ -17,8 +17,8 @@ #define CONFIG_PLATFORM (PLATFORM_HOSTED) #endif -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/zenvisionm30gb.h b/firmware/export/config/zenvisionm30gb.h index 5fa5496b20..ff68345349 100644 --- a/firmware/export/config/zenvisionm30gb.h +++ b/firmware/export/config/zenvisionm30gb.h @@ -41,8 +41,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/config/zenvisionm60gb.h b/firmware/export/config/zenvisionm60gb.h index 23e92ddb0a..7136595d94 100644 --- a/firmware/export/config/zenvisionm60gb.h +++ b/firmware/export/config/zenvisionm60gb.h @@ -41,8 +41,8 @@ /*define this if the ATA controller and method of USB access support LBA48 */ #define HAVE_LBA48 -/* define this if you have a bitmap LCD display */ -#define HAVE_LCD_BITMAP + + /* define this if you have a colour LCD */ #define HAVE_LCD_COLOR diff --git a/firmware/export/font.h b/firmware/export/font.h index ad72cb52c7..067c67e43d 100644 --- a/firmware/export/font.h +++ b/firmware/export/font.h @@ -30,13 +30,11 @@ */ #include "config.h" -#if defined(HAVE_LCD_BITMAP) || (CONFIG_PLATFORM & PLATFORM_HOSTED) #ifndef __PCTOOL__ #include "font_cache.h" #include "sysfont.h" #endif - /* * Fonts are specified by number, and used for display * of menu information as well as mp3 filename data. @@ -139,11 +137,4 @@ int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber) int font_get_width(struct font* ft, unsigned short ch); const unsigned char * font_get_bits(struct font* ft, unsigned short ch); -#else /* HAVE_LCD_BITMAP */ - -#define font_init() -#define font_load(x) - -#endif - #endif diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 0975df4c79..9346a6815b 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -40,14 +40,12 @@ struct viewport { int y; int width; int height; -#ifdef HAVE_LCD_BITMAP int flags; int font; int drawmode; /* needed for even for mono displays to support greylib */ unsigned fg_pattern; unsigned bg_pattern; -#endif }; /* Frame buffer stride @@ -114,7 +112,6 @@ struct scrollinfo; #define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \ (h)):STRIDE_REMOTE((w),(h))) -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH <=8 #if (LCD_PIXELFORMAT == VERTICAL_INTERLEAVED) \ || (LCD_PIXELFORMAT == HORIZONTAL_INTERLEAVED) @@ -144,7 +141,6 @@ typedef unsigned long fb_data; #endif #define FB_DATA_SZ 4 #endif /* LCD_DEPTH */ -#endif #if defined(HAVE_LCD_MODES) void lcd_set_mode(int mode); @@ -193,8 +189,6 @@ extern bool lcd_putsxy_scroll_func(int x, int y, const unsigned char *string, void (*scroll_func)(struct scrollinfo *), void *data, int x_offset); -#ifdef HAVE_LCD_BITMAP - /* performance function */ #if defined(HAVE_LCD_COLOR) #if MEMORYSIZE > 2 @@ -221,7 +215,6 @@ extern void lcd_remote_update(void); /* update a fraction of the screen */ extern void lcd_remote_update_rect(int x, int y, int width, int height); #endif /* HAVE_REMOTE_LCD */ -#endif /* HAVE_LCD_BITMAP */ /* Bitmap formats */ enum @@ -249,8 +242,6 @@ typedef void lcd_blockfunc_type(fb_data *address, unsigned mask, unsigned bits); typedef void lcd_fastpixelfunc_type(fb_data *address); #endif -#ifdef HAVE_LCD_BITMAP - #if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && \ LCD_REMOTE_DEPTH > 1 /* Just return color for screens use */ @@ -593,6 +584,4 @@ static inline int lcd_get_dpi(void) { return LCD_DPI; } extern int lcd_get_dpi(void); #endif /* LCD_DPI */ -#endif /* HAVE_LCD_BITMAP */ - #endif /* __LCD_H__ */ diff --git a/firmware/export/screendump.h b/firmware/export/screendump.h index 484bc4dc7a..cd7793b9d3 100644 --- a/firmware/export/screendump.h +++ b/firmware/export/screendump.h @@ -24,8 +24,7 @@ #include "config.h" -/* Make BMP colour map entries from R, G, B triples, without and with blending. - * Not within HAVE_LCD_BITMAP because it is also used for the Player sim */ +/* Make BMP colour map entries from R, G, B triples, without and with blending. */ #define RED_CMP(c) (((c) >> 16) & 0xff) #define GREEN_CMP(c) (((c) >> 8) & 0xff) #define BLUE_CMP(c) ((c) & 0xff) @@ -63,9 +62,7 @@ /* Save a .BMP file containing the current screen contents. */ void screen_dump(void); -#ifdef HAVE_LCD_BITMAP void screen_dump_set_hook(void (*hook)(int fd)); -#endif #ifdef HAVE_REMOTE_LCD /* Save a .BMP file containing the current remote screen contents. */ diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index 051e367506..f13e2efca7 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -58,11 +58,7 @@ extern bool lcd_remote_scroll_now(struct scrollinfo *scroll); * larger than the normal linebuffer since it holds the line a second * time (+3 spaces) for non-bidir scrolling */ #define SCROLL_SPACING 3 -#ifdef HAVE_LCD_BITMAP #define SCROLL_LINE_SIZE (MAX_PATH + SCROLL_SPACING + 3*LCD_WIDTH/2 + 2) -#else -#define SCROLL_LINE_SIZE (MAX_PATH + SCROLL_SPACING + 3*LCD_WIDTH + 2) -#endif struct scrollinfo { @@ -95,20 +91,14 @@ struct scroll_screen_info long ticks; /* # of ticks between updates*/ long delay; /* ticks delay before start */ int bidir_limit; /* percent */ -#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) int step; /* pixels per scroll step */ -#endif #if defined(HAVE_REMOTE_LCD) long last_scroll; #endif }; /** main lcd **/ -#ifdef HAVE_LCD_BITMAP #define LCD_SCROLLABLE_LINES ((LCD_HEIGHT+4)/5 < 32 ? (LCD_HEIGHT+4)/5 : 32) -#else -#define LCD_SCROLLABLE_LINES LCD_HEIGHT * 2 -#endif extern struct scroll_screen_info lcd_scroll_info; diff --git a/firmware/export/usb.h b/firmware/export/usb.h index d723f85b1a..b7b846d5b3 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h @@ -107,9 +107,7 @@ /* Messages from usb_tick and thread states */ enum { -#ifdef HAVE_LCD_BITMAP USB_SCREENDUMP = -1, /* State */ -#endif USB_EXTRACTED = 0, /* Event+State */ USB_INSERTED, /* Event+State */ USB_POWERED, /* State - transitional indicator if no host */ diff --git a/firmware/include/rbunicode.h b/firmware/include/rbunicode.h index 077029304d..1af560abfe 100644 --- a/firmware/include/rbunicode.h +++ b/firmware/include/rbunicode.h @@ -33,8 +33,6 @@ #define MASK 0xC0 /* 11000000 */ #define COMP 0x80 /* 10x */ -#ifdef HAVE_LCD_BITMAP - enum codepages { ISO_8859_1 = 0, /* Latin1 */ ISO_8859_7, /* Greek */ @@ -55,23 +53,6 @@ enum codepages { INIT_CODEPAGE = ISO_8859_1, }; -#else /* !HAVE_LCD_BITMAP, reduced support */ - -enum codepages { - ISO_8859_1 = 0, /* Latin1 */ - ISO_8859_7, /* Greek */ - WIN_1251, /* Cyrillic */ - ISO_8859_9, /* Turkish */ - ISO_8859_2, /* Latin Extended */ - WIN_1250, /* Central European */ - WIN_1252, /* Western European */ - UTF_8, /* Unicode */ - NUM_CODEPAGES, - INIT_CODEPAGE = ISO_8859_1, -}; - -#endif - /* Encode a UCS value as UTF-8 and return a pointer after this UTF-8 char. */ unsigned char* utf8encode(unsigned long ucs, unsigned char *utf8); unsigned char* iso_decode(const unsigned char *latin1, unsigned char *utf8, int cp, int count); diff --git a/firmware/panic.c b/firmware/panic.c index 358be42924..fcfa8b2bb8 100644 --- a/firmware/panic.c +++ b/firmware/panic.c @@ -86,7 +86,6 @@ void panicf( const char *fmt, ...) lcd_set_viewport(NULL); -#if defined(HAVE_LCD_BITMAP) int y = 1; #if LCD_DEPTH > 1 @@ -116,9 +115,6 @@ void panicf( const char *fmt, ...) #ifdef ROCKBOX_HAS_LOGF logf_panic_dump(&y); #endif -#else - /* no LCD */ -#endif lcd_update(); DEBUGF("%s", panic_buf); diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index ed979f83ce..b55690be96 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -40,9 +40,7 @@ #include "fmradio.h" #endif #include "sound.h" -#ifdef HAVE_LCD_BITMAP #include "font.h" -#endif #include "logf.h" #ifdef HAVE_REMOTE_LCD #include "lcd-remote.h" @@ -754,9 +752,7 @@ void shutdown_hw(void) audio_stop(); if (battery_level_safe()) { /* do not save on critical battery */ -#ifdef HAVE_LCD_BITMAP font_unload_all(); -#endif /* Commit pending writes if needed. Even though we don't do write caching, things like flash translation layers may need this to commit scattered diff --git a/firmware/target/hosted/sdl/system-sdl.c b/firmware/target/hosted/sdl/system-sdl.c index 6aaab6e8a5..e53643f449 100644 --- a/firmware/target/hosted/sdl/system-sdl.c +++ b/firmware/target/hosted/sdl/system-sdl.c @@ -33,9 +33,7 @@ #include "system-sdl.h" #include "sim-ui-defines.h" #include "lcd-sdl.h" -#ifdef HAVE_LCD_BITMAP #include "lcd-bitmap.h" -#endif #ifdef HAVE_REMOTE_LCD #include "lcd-remote-bitmap.h" #endif diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c index 5ef500a69b..87094dd7ae 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c @@ -261,7 +261,6 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) "$1", "LO", "HI", "STATUS", "EPC" }; int i; -#ifdef HAVE_LCD_BITMAP #if LCD_DEPTH > 1 lcd_set_backdrop(NULL); lcd_set_drawmode(DRMODE_SOLID); @@ -270,7 +269,7 @@ void exception_handler(void* stack_ptr, unsigned int cause, unsigned int epc) #endif lcd_setfont(FONT_SYSFIXED); lcd_set_viewport(NULL); -#endif + lcd_clear_display(); backlight_hw_on(); diff --git a/firmware/usb.c b/firmware/usb.c index e20388c073..f97cc75ffe 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -56,9 +56,7 @@ #define USB_FULL_INIT #endif -#ifdef HAVE_LCD_BITMAP bool do_screendump_instead_of_usb = false; -#endif #if !defined(SIMULATOR) && !defined(USB_NONE) @@ -116,7 +114,6 @@ static void try_reboot(void) #endif /* USB_FIRWIRE_HANDLING */ /* Screen dump */ -#ifdef HAVE_LCD_BITMAP static inline bool usb_do_screendump(void) { if(do_screendump_instead_of_usb) @@ -129,7 +126,6 @@ static inline bool usb_do_screendump(void) } return false; } -#endif /* HAVE_LCD_BITMAP */ /* Power (charging-only) button */ static inline void usb_detect_charging_only(bool detect) @@ -458,13 +454,11 @@ static void NORETURN_ATTR usb_thread(void) if(usb_state != USB_EXTRACTED) break; -#ifdef HAVE_LCD_BITMAP if(usb_do_screendump()) { usb_state = USB_SCREENDUMP; break; } -#endif usb_state = USB_POWERED; usb_stack_enable(true); diff --git a/lib/rbcodec/metadata/smaf.c b/lib/rbcodec/metadata/smaf.c index aeeadb431f..78e1fec499 100644 --- a/lib/rbcodec/metadata/smaf.c +++ b/lib/rbcodec/metadata/smaf.c @@ -34,11 +34,7 @@ static const int basebits[4] = { 4, 8, 12, 16 }; static const int frequency[5] = { 4000, 8000, 11025, 22050, 44100 }; static const int support_codepages[5] = { -#ifdef HAVE_LCD_BITMAP SJIS, ISO_8859_1, -1, GB_2312, BIG_5, -#else - -1, ISO_8859_1, -1, -1, -1, -#endif }; /* extra codepage */ @@ -170,13 +166,11 @@ static int read_audio_track_contets(int fd, int codepage, unsigned char **dst, while ((*p & MASK) != COMP) *q++ = *p++; } -#ifdef HAVE_LCD_BITMAP else if (codepage == SJIS) { if (*p <= 0xa0 || *p >= 0xe0) *q++ = *p++; } -#endif } *q++ = *p++; diff --git a/tools/buildzip.pl b/tools/buildzip.pl index 0e980139bf..ce225139ef 100755 --- a/tools/buildzip.pl +++ b/tools/buildzip.pl @@ -258,14 +258,12 @@ sub gettargetinfo { # Get the LCD screen depth and graphical status print GCC < 1 .get_foreground=dummy_func2, .get_background=dummy_func2, @@ -209,7 +207,6 @@ struct screen screens[NB_SCREENS] = #endif }; -#ifdef HAVE_LCD_BITMAP void screen_clear_area(struct screen * display, int xstart, int ystart, int width, int height) { @@ -217,7 +214,6 @@ void screen_clear_area(struct screen * display, int xstart, int ystart, display->fillrect(xstart, ystart, width, height); display->set_drawmode(DRMODE_SOLID); } -#endif #if CONFIG_TUNER bool radio_hardware_present(void) @@ -226,7 +222,6 @@ bool radio_hardware_present(void) } #endif -#ifdef HAVE_LCD_BITMAP static int loaded_fonts = 0; static struct font _font; int font_load(const char *path) @@ -235,7 +230,7 @@ int font_load(const char *path) loaded_fonts++; return id; } - + void font_unload(int font_id) { (void)font_id; @@ -245,7 +240,6 @@ struct font* font_get(int font) { return &_font; } -#endif /* This is no longer defined in ROCKBOX builds so just use a huge value */ #define SKIN_BUFFER_SIZE (200*1024) diff --git a/tools/convbdf.c b/tools/convbdf.c index c508bbf2e8..58ab2645b4 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -1214,7 +1214,6 @@ int gen_c_source(struct font* pf, char *path) "#include \n" "#include \"config.h\"\n" "#include \"font.h\"\n" - "#ifdef HAVE_LCD_BITMAP\n" "\n" "/* Font information:\n" " name: %s\n" @@ -1426,7 +1425,6 @@ int gen_c_source(struct font* pf, char *path) " 0, /* */\n" " 0, /* */\n" "};\n" - "#endif /* HAVE_LCD_BITMAP */\n" ); return 0; @@ -1440,7 +1438,6 @@ int gen_h_header(struct font* pf, char *path) char buf[256]; char *hdr1 = "/* Generated by convbdf on %s. */\n" - "#ifdef HAVE_LCD_BITMAP\n" "\n" "/* Font information */\n" "#define SYSFONT_NAME %s\n" @@ -1458,8 +1455,7 @@ int gen_h_header(struct font* pf, char *path) "#define SYSFONT_PROPORTIONAL %d\n" "#define SYSFONT_COPYRIGHT %s\n" "#define SYSFONT_BITS_SIZE %d\n" - "\n" - "#endif\n"; + "\n"; ofp = fopen(path, "w"); if (!ofp) {