@ -5884,6 +5884,7 @@ void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags)
if ( ( ! allow_opt_inputs & & ! allow_opt_datatype ) | | ! BeginPopup ( " context " ) )
if ( ( ! allow_opt_inputs & & ! allow_opt_datatype ) | | ! BeginPopup ( " context " ) )
return ;
return ;
ImGuiContext & g = * GImGui ;
ImGuiContext & g = * GImGui ;
g . LockMarkEdited + + ;
ImGuiColorEditFlags opts = g . ColorEditOptions ;
ImGuiColorEditFlags opts = g . ColorEditOptions ;
if ( allow_opt_inputs )
if ( allow_opt_inputs )
{
{
@ -5926,6 +5927,7 @@ void ImGui::ColorEditOptionsPopup(const float* col, ImGuiColorEditFlags flags)
g . ColorEditOptions = opts ;
g . ColorEditOptions = opts ;
EndPopup ( ) ;
EndPopup ( ) ;
g . LockMarkEdited - - ;
}
}
void ImGui : : ColorPickerOptionsPopup ( const float * ref_col , ImGuiColorEditFlags flags )
void ImGui : : ColorPickerOptionsPopup ( const float * ref_col , ImGuiColorEditFlags flags )
@ -5935,6 +5937,7 @@ void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags fl
if ( ( ! allow_opt_picker & & ! allow_opt_alpha_bar ) | | ! BeginPopup ( " context " ) )
if ( ( ! allow_opt_picker & & ! allow_opt_alpha_bar ) | | ! BeginPopup ( " context " ) )
return ;
return ;
ImGuiContext & g = * GImGui ;
ImGuiContext & g = * GImGui ;
g . LockMarkEdited + + ;
if ( allow_opt_picker )
if ( allow_opt_picker )
{
{
ImVec2 picker_size ( g . FontSize * 8 , ImMax ( g . FontSize * 8 - ( GetFrameHeight ( ) + g . Style . ItemInnerSpacing . x ) , 1.0f ) ) ; // FIXME: Picker size copied from main picker function
ImVec2 picker_size ( g . FontSize * 8 , ImMax ( g . FontSize * 8 - ( GetFrameHeight ( ) + g . Style . ItemInnerSpacing . x ) , 1.0f ) ) ; // FIXME: Picker size copied from main picker function
@ -5964,6 +5967,7 @@ void ImGui::ColorPickerOptionsPopup(const float* ref_col, ImGuiColorEditFlags fl
CheckboxFlags ( " Alpha Bar " , & g . ColorEditOptions , ImGuiColorEditFlags_AlphaBar ) ;
CheckboxFlags ( " Alpha Bar " , & g . ColorEditOptions , ImGuiColorEditFlags_AlphaBar ) ;
}
}
EndPopup ( ) ;
EndPopup ( ) ;
g . LockMarkEdited - - ;
}
}
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------