summaryrefslogtreecommitdiff
path: root/plugingui/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/mainwindow.cc')
-rw-r--r--plugingui/mainwindow.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/plugingui/mainwindow.cc b/plugingui/mainwindow.cc
index 071bafe..702178f 100644
--- a/plugingui/mainwindow.cc
+++ b/plugingui/mainwindow.cc
@@ -60,11 +60,6 @@ MainWindow::~MainWindow()
bool MainWindow::processEvents()
{
-// if(!initialised)
-// {
-// return running;
-// }
-
settings_notifier.evaluate();
eventHandler()->processEvents();
@@ -86,23 +81,13 @@ void MainWindow::repaintEvent(RepaintEvent* repaintEvent)
}
Painter painter(*this);
+ painter.clear();
auto bar_height = tabs.getBarHeight();
// Grey background
painter.drawImageStretched(0, 0, back, width(), height());
- // DrumGizmo logo
- painter.drawImage(width() - logo.width() - sidebar.width(),
- height() - logo.height(), logo);
-
- // DrumGizmo version
- std::string version_string("v." + std::string(VERSION));
- auto version_x = width() - font.textWidth(version_string) - sidebar.width() - 1;
- auto version_y = height() - 1;
- painter.setColour(Colour(0.47));
- painter.drawText(version_x, version_y, font, version_string);
-
// Topbar above the sidebars
topbar.setSize(16, bar_height);
painter.drawImage(0, 0, topbar);