diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2019-05-25 10:41:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 10:41:35 -0700 |
commit | 68c16c2db78dec4af09da7bec5d386422d9264a1 (patch) | |
tree | 8cbd77f08d9472cf4828dc8ae999937b30d5c08f /gui/application.cc | |
parent | 0d1c7118e3f35ed90744ee5319e32b8ef720d1a5 (diff) | |
parent | 9b8d3b7546571044336807d33a2f56abaef2c52f (diff) | |
download | nextpnr-68c16c2db78dec4af09da7bec5d386422d9264a1.tar.gz nextpnr-68c16c2db78dec4af09da7bec5d386422d9264a1.tar.bz2 nextpnr-68c16c2db78dec4af09da7bec5d386422d9264a1.zip |
Merge pull request #279 from YosysHQ/gui-no-aa
option to disable anti aliasing in gui
Diffstat (limited to 'gui/application.cc')
-rw-r--r-- | gui/application.cc | 5 |
1 files changed, 3 insertions, 2 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 |