Browse Source

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 years ago
parent
commit
160456eb7b
1 changed files with 1 additions and 1 deletions
  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);