diff --git a/OMCompiler/SimulationRuntime/ParModelica/explicit/openclrt/omc_ocl_common_header.h b/OMCompiler/SimulationRuntime/ParModelica/explicit/openclrt/omc_ocl_common_header.h index 6396faba527..f523117323b 100644 --- a/OMCompiler/SimulationRuntime/ParModelica/explicit/openclrt/omc_ocl_common_header.h +++ b/OMCompiler/SimulationRuntime/ParModelica/explicit/openclrt/omc_ocl_common_header.h @@ -43,6 +43,8 @@ #ifndef _OMC_OCL_COMMON_HEADER #define _OMC_OCL_COMMON_HEADER +#define CL_TARGET_OPENCL_VERSION 120 + #include #ifdef __APPLE__ #include @@ -53,8 +55,6 @@ #include #include - - #define MAX_DEVICE 4 #define SHOW_DEVICE_SELECTION // #define SHOW_ARG_SET_ERRORS diff --git a/OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp b/OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp index 09c5c6717d1..64428f76f52 100644 --- a/OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp +++ b/OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp @@ -64,7 +64,7 @@ PlotWindow::PlotWindow(QStringList arguments, QWidget *parent, bool isInteractiv { /* set the widget background white. so that the plot is more useable in books and publications. */ QPalette p(palette()); - p.setColor(QPalette::Background, Qt::white); + p.setColor(QPalette::Window, Qt::white); setAutoFillBackground(true); setPalette(p); // setup the main window widget