From 9b8d3b7546571044336807d33a2f56abaef2c52f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 25 May 2019 08:42:17 +0200 Subject: option to disable anti aliasing in gui --- common/command.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common') 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>(), @@ -235,7 +236,7 @@ int CommandHandler::executeMain(std::unique_ptr 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")) { -- cgit v1.2.3