Fix win flags with opencv2

This commit is contained in:
John Zhao 2018-07-17 10:13:50 +08:00
parent 3dc21c0378
commit 4892f52158
2 changed files with 8 additions and 0 deletions

View File

@ -18,8 +18,12 @@
#include "mynteye/api.h" #include "mynteye/api.h"
#ifdef USE_OPENCV3
#define WIN_FLAGS \ #define WIN_FLAGS \
cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL
#else
#define WIN_FLAGS cv::WINDOW_AUTOSIZE
#endif
namespace { namespace {

View File

@ -21,8 +21,12 @@
#include "util/cv_painter.h" #include "util/cv_painter.h"
#include "util/pc_viewer.h" #include "util/pc_viewer.h"
#ifdef USE_OPENCV3
#define WIN_FLAGS \ #define WIN_FLAGS \
cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL cv::WINDOW_AUTOSIZE | cv::WINDOW_KEEPRATIO | cv::WINDOW_GUI_NORMAL
#else
#define WIN_FLAGS cv::WINDOW_AUTOSIZE
#endif
namespace { namespace {