@ -2464,13 +2464,13 @@ bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type
IM_ASSERT ( * ( const ImS32 * ) v_min > = IM_S32_MIN / 2 & & * ( const ImS32 * ) v_max < = IM_S32_MAX / 2 ) ;
return SliderBehaviorT < ImS32 , ImS32 , float > ( bb , id , data_type , ( ImS32 * ) v , * ( const ImS32 * ) v_min , * ( const ImS32 * ) v_max , format , power , flags , out_grab_bb ) ;
case ImGuiDataType_U32 :
IM_ASSERT ( * ( const ImU32 * ) v_m in < = IM_U32_MAX / 2 ) ;
IM_ASSERT ( * ( const ImU32 * ) v_m ax < = IM_U32_MAX / 2 ) ;
return SliderBehaviorT < ImU32 , ImS32 , float > ( bb , id , data_type , ( ImU32 * ) v , * ( const ImU32 * ) v_min , * ( const ImU32 * ) v_max , format , power , flags , out_grab_bb ) ;
case ImGuiDataType_S64 :
IM_ASSERT ( * ( const ImS64 * ) v_min > = IM_S64_MIN / 2 & & * ( const ImS64 * ) v_max < = IM_S64_MAX / 2 ) ;
return SliderBehaviorT < ImS64 , ImS64 , double > ( bb , id , data_type , ( ImS64 * ) v , * ( const ImS64 * ) v_min , * ( const ImS64 * ) v_max , format , power , flags , out_grab_bb ) ;
case ImGuiDataType_U64 :
IM_ASSERT ( * ( const ImU64 * ) v_m in < = IM_U64_MAX / 2 ) ;
IM_ASSERT ( * ( const ImU64 * ) v_m ax < = IM_U64_MAX / 2 ) ;
return SliderBehaviorT < ImU64 , ImS64 , double > ( bb , id , data_type , ( ImU64 * ) v , * ( const ImU64 * ) v_min , * ( const ImU64 * ) v_max , format , power , flags , out_grab_bb ) ;
case ImGuiDataType_Float :
IM_ASSERT ( * ( const float * ) v_min > = - FLT_MAX / 2.0f & & * ( const float * ) v_max < = FLT_MAX / 2.0f ) ;
@ -3384,7 +3384,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
BeginGroup ( ) ;
const ImGuiID id = window - > GetID ( label ) ;
const ImVec2 label_size = CalcTextSize ( label , NULL , true ) ;
ImVec2 size = CalcItemSize ( size_arg , CalcItemWidth ( ) , ( is_multiline ? GetTextLineHeight( ) * 8.0f : label_size . y ) + style . FramePadding . y * 2.0f ) ; // Arbitrary default of 8 lines high for multi-line
ImVec2 size = CalcItemSize ( size_arg , CalcItemWidth ( ) , ( is_multiline ? g. FontSize * 8.0f : label_size . y ) + style . FramePadding . y * 2.0f ) ; // Arbitrary default of 8 lines high for multi-line
const ImRect frame_bb ( window - > DC . CursorPos , window - > DC . CursorPos + size ) ;
const ImRect total_bb ( frame_bb . Min , frame_bb . Max + ImVec2 ( label_size . x > 0.0f ? ( style . ItemInnerSpacing . x + label_size . x ) : 0.0f , 0.0f ) ) ;