MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / UnpackAccumulativeOffsetsIntoRanges

Function UnpackAccumulativeOffsetsIntoRanges

KBotExt/imgui/imgui_draw.cpp:2912–2920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2910}
2911
2912static void UnpackAccumulativeOffsetsIntoRanges(int base_codepoint, const short* accumulative_offsets, int accumulative_offsets_count, ImWchar* out_ranges)
2913{
2914 for (int n = 0; n < accumulative_offsets_count; n++, out_ranges += 2)
2915 {
2916 out_ranges[0] = out_ranges[1] = (ImWchar)(base_codepoint + accumulative_offsets[n]);
2917 base_codepoint += accumulative_offsets[n];
2918 }
2919 out_ranges[0] = 0;
2920}
2921
2922//-------------------------------------------------------------------------
2923// [SECTION] ImFontAtlas glyph ranges helpers

Calls

no outgoing calls

Tested by

no test coverage detected