Remove unnecessary menu consdtructor parameters

This commit is contained in:
Jan-Henrik 2020-02-23 01:03:05 +01:00
parent ca4d0cc5e2
commit cda0831b9d
2 changed files with 4 additions and 5 deletions

View file

@ -16,12 +16,12 @@ class Menu {
uint8_t width, height; uint8_t width, height;
public: public:
Menu(uint8_t width_, uint8_t height_) Menu()
: selectedItem(0) : selectedItem(0)
, currentScrollStart(0) , currentScrollStart(0)
, currentEditingItem(-1) , currentEditingItem(-1)
, width(width_) , width(10)
, height(height_) {}; , height(10) {};
void up(); void up();
void down(); void down();

View file

@ -4,8 +4,7 @@
#include <u8g2.h> #include <u8g2.h>
PartMenu::PartMenu() PartMenu::PartMenu()
: menu(128, 64) : item_voice_count("voice count", 1, 1, 4, 1)
, item_voice_count("voice count", 1, 1, 4, 1)
, item_voice_detail("voice detail", 1, 1, 4, 1) , item_voice_detail("voice detail", 1, 1, 4, 1)
, item_midi_filter_enabled("MIDI filter", 0, "on", "off") , item_midi_filter_enabled("MIDI filter", 0, "on", "off")
, item_midi_channel("MIDI channel", 0, 0, 100, 1) , item_midi_channel("MIDI channel", 0, 0, 100, 1)