MCPcopy Create free account
hub / github.com/Veerzeng/GraphicAlgorithm / PatchFormatStringFloatToInt

Function PatchFormatStringFloatToInt

SDK/imgui_master/imgui_widgets.cpp:1495–1514  ·  view source on GitHub ↗

FIXME-LEGACY: Prior to 1.61 our DragInt() function internally used floats and because of this the compile-time default value for format was "%.0f". Even though we changed the compile-time default, we expect users to have carried %f around, which would break the display of DragInt() calls. To honor backward compatibility we are rewriting the format string, unless IMGUI_DISABLE_OBSOLETE_FUNCTIONS is

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

DragScalarMethod · 0.85
SliderScalarMethod · 0.85
VSliderScalarMethod · 0.85

Calls 3

ImParseFormatFindStartFunction · 0.85
ImParseFormatFindEndFunction · 0.85
ImFormatStringFunction · 0.85

Tested by

no test coverage detected