Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to paraview 5.4
[modules/gui.git]
/
src
/
VTKViewer
/
VTKViewer_RenderWindow.cxx
diff --git
a/src/VTKViewer/VTKViewer_RenderWindow.cxx
b/src/VTKViewer/VTKViewer_RenderWindow.cxx
index 2395f8c965d0adbd0076d334312222973ec77041..16aafdbc3dcfec3803e1b4a361761d37bbc2a371 100755
(executable)
--- a/
src/VTKViewer/VTKViewer_RenderWindow.cxx
+++ b/
src/VTKViewer/VTKViewer_RenderWindow.cxx
@@
-31,7
+31,7
@@
#include <vtkRenderWindowInteractor.h>
#include <vtkRendererCollection.h>
#include <vtkCamera.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkRendererCollection.h>
#include <vtkCamera.h>
-#if
ndef WIN32
+#if
!defined WIN32 && !defined __APPLE__
#include <QX11Info>
#include <vtkXOpenGLRenderWindow.h>
#endif
#include <QX11Info>
#include <vtkXOpenGLRenderWindow.h>
#endif
@@
-47,7
+47,7
@@
QWidget(parent, Qt::FramelessWindowHint )
setAttribute( Qt::WA_DeleteOnClose );
myRW = vtkRenderWindow::New();
setAttribute( Qt::WA_DeleteOnClose );
myRW = vtkRenderWindow::New();
-#if
ndef WIN32
+#if
!defined WIN32 && !defined __APPLE__
myRW->SetDisplayId((void*)(QX11Info::display()));
#endif
myRW->SetWindowId((void*)winId());
myRW->SetDisplayId((void*)(QX11Info::display()));
#endif
myRW->SetWindowId((void*)winId());