diff --git a/samples/api/get_depth_with_region.cc b/samples/api/get_depth_with_region.cc index 4698e2f..9ea78b4 100644 --- a/samples/api/get_depth_with_region.cc +++ b/samples/api/get_depth_with_region.cc @@ -18,8 +18,12 @@ #include "mynteye/api.h" +#ifdef USE_OPENCV3 #define WIN_FLAGS \ cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL +#else +#define WIN_FLAGS cv::WINDOW_AUTOSIZE +#endif namespace { diff --git a/samples/tutorials/intermediate/get_depth_and_points.cc b/samples/tutorials/intermediate/get_depth_and_points.cc index ec73a11..754d39b 100644 --- a/samples/tutorials/intermediate/get_depth_and_points.cc +++ b/samples/tutorials/intermediate/get_depth_and_points.cc @@ -21,8 +21,12 @@ #include "util/cv_painter.h" #include "util/pc_viewer.h" +#ifdef USE_OPENCV3 #define WIN_FLAGS \ cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL +#else +#define WIN_FLAGS cv::WINDOW_AUTOSIZE +#endif namespace {