Merge pull request #7935 from alalek:fix_waitKey

pull/7998/head
Vadim Pisarevsky 8 years ago
commit b345c6e552
  1. 2
      modules/highgui/src/window.cpp

@ -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…
Cancel
Save