Skip to content

Commit

Permalink
*fix display russian symbols in filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
moonglow committed Jun 10, 2021
1 parent 106ea25 commit 070638f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@

// Allow international symbols in long filenames. To display correctly, the
// LCD's font must contain the characters. Check your selected LCD language.
//#define UTF_FILENAME_SUPPORT
#define UTF_FILENAME_SUPPORT

// This allows hosts to request long names for files and folders with M33
#define LONG_FILENAME_HOST_SUPPORT
Expand Down
4 changes: 4 additions & 0 deletions Marlin/Marlin/src/lcd/tft/ui_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ void MenuItem_static::draw(const uint8_t row, PGM_P const pstr, const uint8_t st
menu_item(row, sel);
if (isDir)
tft.add_image(MENU_ITEM_ICON_X, MENU_ITEM_ICON_Y, imgDirectory, COLOR_MENU_TEXT, sel ? COLOR_SELECTION_BG : COLOR_BACKGROUND);
#if ENABLED( FF_RUSSIAN_FIX )
tft.add_text(MENU_ITEM_ICON_SPACE|0x8000, MENU_TEXT_Y_OFFSET, COLOR_MENU_TEXT, theCard.longest_filename());
#else
tft.add_text(MENU_ITEM_ICON_SPACE, MENU_TEXT_Y_OFFSET, COLOR_MENU_TEXT, theCard.longest_filename());
#endif
}

#endif
Expand Down

0 comments on commit 070638f

Please sign in to comment.