diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-05-25 08:42:17 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-05-25 08:42:17 +0200 |
commit | 9b8d3b7546571044336807d33a2f56abaef2c52f (patch) | |
tree | 8cbd77f08d9472cf4828dc8ae999937b30d5c08f /gui | |
parent | 0d1c7118e3f35ed90744ee5319e32b8ef720d1a5 (diff) | |
download | nextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.tar.gz nextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.tar.bz2 nextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.zip |
option to disable anti aliasing in gui
Diffstat (limited to 'gui')
-rw-r--r-- | gui/application.cc | 5 | ||||
-rw-r--r-- | gui/application.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gui/application.cc b/gui/application.cc index 0a82e40b..d5f0f6a9 100644 --- a/gui/application.cc +++ b/gui/application.cc @@ -39,10 +39,11 @@ BOOL WINAPI WinHandler(DWORD dwCtrlType) } #endif -Application::Application(int &argc, char **argv) : QApplication(argc, argv) +Application::Application(int &argc, char **argv, bool noantialiasing) : QApplication(argc, argv) { QSurfaceFormat fmt; - fmt.setSamples(10); + if (!noantialiasing) + fmt.setSamples(10); fmt.setProfile(QSurfaceFormat::CoreProfile); // macOS is very picky about this version matching // the version of openGL used in ImGuiRenderer diff --git a/gui/application.h b/gui/application.h index 321f6b65..ad5de62f 100644 --- a/gui/application.h +++ b/gui/application.h @@ -29,7 +29,7 @@ NEXTPNR_NAMESPACE_BEGIN class Application : public QApplication { public: - Application(int &argc, char **argv); + Application(int &argc, char **argv, bool noantialiasing); bool notify(QObject *receiver, QEvent *event); }; |