Floats choosable between double and float

This commit is contained in:
No Default Name
2022-04-28 21:18:28 +02:00
parent a1efa1e77f
commit 5cdc8d4c27
3 changed files with 60 additions and 33 deletions

View File

@@ -202,7 +202,7 @@ static int supports_full_hd(const char * const monitor)
goto end;
}
if (compare_double(width->valuedouble, 1920) && compare_double(height->valuedouble, 1080))
if (compare_cJSON_float(width->valuedouble, 1920) && compare_cJSON_float(height->valuedouble, 1080))
{
status = 1;
goto end;