Fixed parameters array size declaration (wouldn't have a side-effect but weird and misleading)

Thanks Coverity
This commit is contained in:
ocornut 2015-07-15 09:36:39 -06:00
parent 368d2c3568
commit 1a3ef63132

View File

@ -6453,12 +6453,12 @@ bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min
return DragFloatN(label, v, 2, v_speed, v_min, v_max, display_format, power); return DragFloatN(label, v, 2, v_speed, v_min, v_max, display_format, power);
} }
bool ImGui::DragFloat3(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* display_format, float power) bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* display_format, float power)
{ {
return DragFloatN(label, v, 3, v_speed, v_min, v_max, display_format, power); return DragFloatN(label, v, 3, v_speed, v_min, v_max, display_format, power);
} }
bool ImGui::DragFloat4(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* display_format, float power) bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* display_format, float power)
{ {
return DragFloatN(label, v, 4, v_speed, v_min, v_max, display_format, power); return DragFloatN(label, v, 4, v_speed, v_min, v_max, display_format, power);
} }