]> git.sesse.net Git - nageru/blobdiff - main.cpp
Make the master peak display clickable, like all the other peak labels.
[nageru] / main.cpp
index 75ae9a7f7cbfa6354d7c7553dfa28070d89cfab7..37ac4a4ae226943cfb279ddc857f649770427fdd 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -41,6 +41,11 @@ int main(int argc, char *argv[])
        fmt.setProfile(QSurfaceFormat::CoreProfile);
        fmt.setMajorVersion(3);
        fmt.setMinorVersion(1);
+
+       // Turn off vsync, since Qt generally gives us at most frame rate
+       // (display frequency) / (number of QGLWidgets active).
+       fmt.setSwapInterval(0);
+
        QSurfaceFormat::setDefaultFormat(fmt);
 
        QGLFormat::setDefaultFormat(QGLFormat::fromSurfaceFormat(fmt));
@@ -48,7 +53,7 @@ int main(int argc, char *argv[])
        global_share_widget = new QGLWidget();
 
        MainWindow mainWindow;
-       mainWindow.resize(QSize(1500, 810));
+       mainWindow.resize(QSize(1500, 850));
        mainWindow.show();
 
        app.installEventFilter(&mainWindow);  // For white balance color picking.
@@ -62,6 +67,9 @@ int main(int argc, char *argv[])
                fprintf(stderr, "Failed to lock Nageru into RAM. You probably want to\n");
                fprintf(stderr, "increase \"memlock\" for your user in limits.conf\n");
                fprintf(stderr, "for better realtime behavior.\n");
+               uses_mlock = false;
+       } else {
+               uses_mlock = true;
        }
 
        int rc = app.exec();