mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
highgui: preserve waitKey -1 return value
This commit is contained in:
parent
7dd3723abe
commit
d015b55e6b
@ -218,7 +218,7 @@ int cv::waitKey(int delay)
|
||||
if (use_legacy > 0)
|
||||
return code;
|
||||
#endif
|
||||
return code & 0xff;
|
||||
return (code != -1) ? (code & 0xff) : -1;
|
||||
}
|
||||
|
||||
int cv::createTrackbar(const String& trackbarName, const String& winName,
|
||||
|
Loading…
Reference in New Issue
Block a user