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;
public:
Menu(uint8_t width_, uint8_t height_)
Menu()
: selectedItem(0)
, currentScrollStart(0)
, currentEditingItem(-1)
, width(width_)
, height(height_) {};
, width(10)
, height(10) {};
void up();
void down();

View file

@ -4,8 +4,7 @@
#include <u8g2.h>
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_midi_filter_enabled("MIDI filter", 0, "on", "off")
, item_midi_channel("MIDI channel", 0, 0, 100, 1)