Merge pull request #20980 from alalek:highgui_fix_cvGetWindowImageRect_3.4

This commit is contained in:
Alexander Alekhin 2021-10-30 13:59:08 +00:00
commit bce76a7977
2 changed files with 1 additions and 5 deletions

View File

@ -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 );

View File

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