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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user