From 9cc0db2576ab7b5b11e3183340c2447af1cadf0d Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 19 Feb 2016 11:36:51 +0100 Subject: [PATCH] Debug for MacOSX Retina --- vv/vvSegmentationDialog.cxx | 8 ++++++++ vv/vvSurfaceViewerDialog.cxx | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/vv/vvSegmentationDialog.cxx b/vv/vvSegmentationDialog.cxx index d4bea5b..b538b9d 100644 --- a/vv/vvSegmentationDialog.cxx +++ b/vv/vvSegmentationDialog.cxx @@ -61,6 +61,10 @@ #include #include +#ifdef Q_OS_OSX +# include "vvOSXHelper.h" +#endif + //==================================================================== vvSegmentationDialog::vvSegmentationDialog(QWidget * parent, Qt::WindowFlags f) :QDialog(parent,f), Ui::vvSegmentationDialog() @@ -102,6 +106,10 @@ vvSegmentationDialog::vvSegmentationDialog(QWidget * parent, Qt::WindowFlags f) erodeButton->setEnabled(0); dilateButton->setEnabled(0); infoLabel->setText("Select Up and Down threshold before clicking binarise !"); + +#ifdef Q_OS_OSX + disableGLHiDPI(viewWidget->winId()); +#endif } vvSegmentationDialog::~vvSegmentationDialog() diff --git a/vv/vvSurfaceViewerDialog.cxx b/vv/vvSurfaceViewerDialog.cxx index e8a6acb..da0381a 100644 --- a/vv/vvSurfaceViewerDialog.cxx +++ b/vv/vvSurfaceViewerDialog.cxx @@ -35,6 +35,10 @@ #include #include +#ifdef Q_OS_OSX +# include "vvOSXHelper.h" +#endif + //---------------------------------------------------------------------------- class vvManagerCallback : public vtkCommand { @@ -76,6 +80,10 @@ vvSurfaceViewerDialog::vvSurfaceViewerDialog(QWidget * parent, Qt::WindowFlags f mCurrentTime = 0; connect(loadButton,SIGNAL(clicked()),this,SLOT(LoadSurface())); + +#ifdef Q_OS_OSX + disableGLHiDPI(renderWidget->winId()); +#endif } vvSurfaceViewerDialog::~vvSurfaceViewerDialog() -- 2.45.1