aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-05-25 08:42:17 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-05-25 08:42:17 +0200
commit9b8d3b7546571044336807d33a2f56abaef2c52f (patch)
tree8cbd77f08d9472cf4828dc8ae999937b30d5c08f /common
parent0d1c7118e3f35ed90744ee5319e32b8ef720d1a5 (diff)
downloadnextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.tar.gz
nextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.tar.bz2
nextpnr-9b8d3b7546571044336807d33a2f56abaef2c52f.zip
option to disable anti aliasing in gui
Diffstat (limited to 'common')
-rw-r--r--common/command.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/command.cc b/common/command.cc
index 49081e72..65562528 100644
--- a/common/command.cc
+++ b/common/command.cc
@@ -107,6 +107,7 @@ po::options_description CommandHandler::getGeneralOptions()
general.add_options()("force,f", "keep running after errors");
#ifndef NO_GUI
general.add_options()("gui", "start gui");
+ general.add_options()("gui-no-aa", "disable anti aliasing");
#endif
#ifndef NO_PYTHON
general.add_options()("run", po::value<std::vector<std::string>>(),
@@ -235,7 +236,7 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
#ifndef NO_GUI
if (vm.count("gui")) {
- Application a(argc, argv);
+ Application a(argc, argv, (vm.count("gui-no-aa") > 0));
MainWindow w(std::move(ctx), chipArgs);
try {
if (vm.count("json")) {