1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-26 20:26:32 +00:00

option to disable anti aliasing in gui

This commit is contained in:
Miodrag Milanovic
2019-05-25 08:42:17 +02:00
parent 0d1c7118e3
commit 9b8d3b7546
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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);
};