[Windows] Fix color picker on old versions of Windows 10.
This commit is contained in:
@ -149,8 +149,9 @@ bool DisplayServerWindows::has_feature(Feature p_feature) const {
|
||||
case FEATURE_STATUS_INDICATOR:
|
||||
case FEATURE_WINDOW_EMBEDDING:
|
||||
case FEATURE_WINDOW_DRAG:
|
||||
case FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE:
|
||||
return true;
|
||||
case FEATURE_SCREEN_EXCLUDE_FROM_CAPTURE:
|
||||
return (os_ver.dwBuildNumber >= 19041); // Fully supported on Windows 10 Vibranium R1 (2004)+ only, captured as black rect on older versions.
|
||||
case FEATURE_EMOJI_AND_SYMBOL_PICKER:
|
||||
return (os_ver.dwBuildNumber >= 17134); // Windows 10 Redstone 4 (1803)+ only.
|
||||
#ifdef ACCESSKIT_ENABLED
|
||||
|
||||
@ -639,7 +639,7 @@ String OS_Windows::get_version_alias() const {
|
||||
} else {
|
||||
windows_string += "Unknown";
|
||||
}
|
||||
// Windows versions older than 7 cannot run Godot.
|
||||
// Windows versions older than 10 cannot run Godot.
|
||||
|
||||
return vformat("%s (build %d)", windows_string, (int64_t)fow.dwBuildNumber);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user