mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
build: made environment access a separate feature
This commit is contained in:
@@ -662,7 +662,7 @@ int cv::waitKey(int delay)
|
||||
static int use_legacy = -1;
|
||||
if (use_legacy < 0)
|
||||
{
|
||||
use_legacy = getenv("OPENCV_LEGACY_WAITKEY") != NULL ? 1 : 0;
|
||||
use_legacy = utils::getConfigurationParameterBool("OPENCV_LEGACY_WAITKEY");
|
||||
}
|
||||
if (use_legacy > 0)
|
||||
return code;
|
||||
|
||||
Reference in New Issue
Block a user