Merge pull request #20980 from alalek:highgui_fix_cvGetWindowImageRect_3.4

pull/20983/head^2
Alexander Alekhin 3 years ago
commit bce76a7977
  1. 5
      modules/highgui/include/opencv2/highgui/highgui_c.h
  2. 1
      modules/highgui/src/window.cpp

@ -135,11 +135,6 @@ CVAPI(int) cvNamedWindow( const char* name, int flags CV_DEFAULT(CV_WINDOW_AUTOS
CVAPI(void) cvSetWindowProperty(const char* name, int prop_id, double prop_value);
CVAPI(double) cvGetWindowProperty(const char* name, int prop_id);
#ifdef __cplusplus // FIXIT remove in OpenCV 4.0
/* Get window image rectangle coordinates, width and height */
CVAPI(cv::Rect)cvGetWindowImageRect(const char* name);
#endif
/* display image within window (highgui windows remember their content) */
CVAPI(void) cvShowImage( const char* name, const CvArr* image );

@ -191,6 +191,7 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
}
}
static
cv::Rect cvGetWindowImageRect(const char* name)
{
if (!name)

Loading…
Cancel
Save