| @@ -6,6 +6,8 @@ In this document, Mod is Ctrl on Windows/Linux and Cmd on Mac. | |||||
| - Swap order of tags and brands in Module Browser. | - Swap order of tags and brands in Module Browser. | ||||
| - Disable smoothing for MIDI CC buttons in MIDI-Map. | - Disable smoothing for MIDI CC buttons in MIDI-Map. | ||||
| - Automatically unzip update on Mac. | - Automatically unzip update on Mac. | ||||
| - Stop worker threads when engine is paused to save CPU. | |||||
| - Hide menu and scrollbars when fullscreen. | |||||
| - Core | - Core | ||||
| - Fix sustain pedal release bug when using polyphonic mode in MIDI-CV. | - Fix sustain pedal release bug when using polyphonic mode in MIDI-CV. | ||||
| - API | - API | ||||
| @@ -77,8 +77,21 @@ void RackScrollWidget::step() { | |||||
| void RackScrollWidget::draw(const DrawArgs& args) { | void RackScrollWidget::draw(const DrawArgs& args) { | ||||
| // DEBUG("%f %f %f %f", RECT_ARGS(args.clipBox)); | |||||
| // Hide scrollbars if full screen | |||||
| bool fullscreen = APP->window->isFullScreen(); | |||||
| bool horizontalVisible; | |||||
| bool verticalVisible; | |||||
| if (fullscreen) { | |||||
| horizontalVisible = horizontalScrollBar->visible; | |||||
| verticalVisible = verticalScrollBar->visible; | |||||
| horizontalScrollBar->visible = false; | |||||
| verticalScrollBar->visible = false; | |||||
| } | |||||
| ScrollWidget::draw(args); | ScrollWidget::draw(args); | ||||
| if (fullscreen) { | |||||
| horizontalScrollBar->visible = horizontalVisible; | |||||
| verticalScrollBar->visible = verticalVisible; | |||||
| } | |||||
| } | } | ||||
| void RackScrollWidget::onHoverKey(const event::HoverKey& e) { | void RackScrollWidget::onHoverKey(const event::HoverKey& e) { | ||||
| @@ -23,7 +23,6 @@ Scene::Scene() { | |||||
| menuBar = createMenuBar(); | menuBar = createMenuBar(); | ||||
| addChild(menuBar); | addChild(menuBar); | ||||
| rackScroll->box.pos.y = menuBar->box.size.y; | |||||
| moduleBrowser = moduleBrowserCreate(); | moduleBrowser = moduleBrowserCreate(); | ||||
| moduleBrowser->hide(); | moduleBrowser->hide(); | ||||
| @@ -34,6 +33,10 @@ Scene::~Scene() { | |||||
| } | } | ||||
| void Scene::step() { | void Scene::step() { | ||||
| bool fullscreen = APP->window->isFullScreen(); | |||||
| menuBar->visible = !fullscreen; | |||||
| rackScroll->box.pos.y = menuBar->visible ? menuBar->box.size.y : 0; | |||||
| // Resize owned descendants | // Resize owned descendants | ||||
| menuBar->box.size.x = box.size.x; | menuBar->box.size.x = box.size.x; | ||||
| rackScroll->box.size = box.size.minus(rackScroll->box.pos); | rackScroll->box.size = box.size.minus(rackScroll->box.pos); | ||||