revised version of F746_SD_GraphicEqualizer
Dependencies: BSP_DISCO_F746NG F746_GUI F746_SAI_IO FrequencyResponseDrawer LCD_DISCO_F746NG SDFileSystem_Warning_Fixed TS_DISCO_F746NG mbed
Fork of F746_SD_GraphicEqualizer by
Diff: MyClasses_Functions/FileSelectorWav.hpp
- Revision:
- 2:2a5c93bf729a
- Parent:
- 0:e953eb392151
--- a/MyClasses_Functions/FileSelectorWav.hpp Wed Apr 27 14:24:45 2016 +0000 +++ b/MyClasses_Functions/FileSelectorWav.hpp Sun May 01 02:44:30 2016 +0000 @@ -120,17 +120,17 @@ if (sort) std::sort(sortedFileNames_, sortedFileNames_+fileCount_); - Erase(MAX_NAME_LENGTH_*((sFONT *)(&Font16))->Width, 288); + Erase(X_, 0, MAX_NAME_LENGTH_*((sFONT *)(&Font16))->Width, 288); rect_->DrawAll(); for (int n=0; n<fileCount_; n++) fileNameLabels_[n]->Draw(GetFileNameNoExt(n)); } - void Erase(uint16_t width, uint16_t height, + void Erase(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint32_t color = GuiBase::ENUM_BACK) { lcd_->SetTextColor(color); - lcd_->FillRect(0, 0, width, height); + lcd_->FillRect(x, y, width, height); } private: