mirror of
https://github.com/opencv/opencv.git
synced 2025-06-28 07:23:30 +08:00
Merge pull request #7935 from alalek:fix_waitKey
This commit is contained in:
commit
b345c6e552
@ -218,7 +218,7 @@ int cv::waitKey(int delay)
|
|||||||
if (use_legacy > 0)
|
if (use_legacy > 0)
|
||||||
return code;
|
return code;
|
||||||
#endif
|
#endif
|
||||||
return code & 0xff;
|
return (code != -1) ? (code & 0xff) : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cv::createTrackbar(const String& trackbarName, const String& winName,
|
int cv::createTrackbar(const String& trackbarName, const String& winName,
|
||||||
|
Loading…
Reference in New Issue
Block a user