1
0
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:
Maksim Shabunin
2024-10-17 23:35:38 +03:00
parent 2756c20e3e
commit 04818d6dd5
44 changed files with 176 additions and 275 deletions
+1 -1
View File
@@ -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;