Преглед на файлове

Apply line smoothing on Mac and windows

Only X11 supports multisampling (antialising), on other platforms, we need
to manually turn on anti-aliasing using "lineSmoothing"
Julien Finet преди 13 години
родител
ревизия
160456eb7b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Libs/Visualization/VTK/Widgets/ctkVTKChartView.cpp

+ 1 - 1
Libs/Visualization/VTK/Widgets/ctkVTKChartView.cpp

@@ -83,7 +83,7 @@ void ctkVTKChartViewPrivate::init()
   //q->GetRenderWindow()->SetMultiSamples(0);
   //vtkOpenGLContextDevice2D::SafeDownCast(this->ContextView->GetContext()->GetDevice())
   //                                       ->SetStringRendererToQt();
-#ifdef Q_WS_WIN
+#ifndef Q_WS_X11
   q->GetRenderWindow()->SetLineSmoothing(true);
 #endif
   this->Chart->SetActionToButton(vtkChart::PAN, vtkContextMouseEvent::MIDDLE_BUTTON);