mirror of
https://github.com/opencv/opencv.git
synced 2025-06-16 23:00:51 +08:00
Merge pull request #19873 from crackwitz:issue-19870
This commit is contained in:
commit
bfb10d74eb
@ -93,7 +93,9 @@ CV_IMPL void cvSetWindowProperty(const char* name, int prop_id, double prop_valu
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case cv::WND_PROP_VSYNC:
|
case cv::WND_PROP_VSYNC:
|
||||||
#if defined (HAVE_WIN32UI)
|
#if defined (HAVE_QT)
|
||||||
|
// nothing
|
||||||
|
#elif defined (HAVE_WIN32UI)
|
||||||
cvSetPropVsync_W32(name, (prop_value != 0));
|
cvSetPropVsync_W32(name, (prop_value != 0));
|
||||||
#else
|
#else
|
||||||
// not implemented yet for other toolkits
|
// not implemented yet for other toolkits
|
||||||
@ -191,7 +193,9 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case cv::WND_PROP_VSYNC:
|
case cv::WND_PROP_VSYNC:
|
||||||
#if defined (HAVE_WIN32UI)
|
#if defined (HAVE_QT)
|
||||||
|
return -1;
|
||||||
|
#elif defined (HAVE_WIN32UI)
|
||||||
return cvGetPropVsync_W32(name);
|
return cvGetPropVsync_W32(name);
|
||||||
#else
|
#else
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user