1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-13 22:48:50 -05:00

fix compile issue with latest ImGui

This commit is contained in:
Evan Pezent 2020-09-28 16:38:27 -05:00
parent 90cbb561f0
commit da5b4ab8d3

View File

@ -257,8 +257,8 @@ void AddTextVertical(ImDrawList *DrawList, ImVec2 pos, ImU32 col, const char *te
text_end = text_begin + strlen(text_begin);
ImGuiContext& g = *GImGui;
ImFont* font = g.Font;
pos.x = IM_FLOOR(pos.x + font->DisplayOffset.y);
pos.y = IM_FLOOR(pos.y + font->DisplayOffset.x);
pos.x = IM_FLOOR(pos.x); // + font->ConfigData->GlyphOffset.y);
pos.y = IM_FLOOR(pos.y); // + font->ConfigData->GlyphOffset.x);
const char* s = text_begin;
const int vtx_count = (int)(text_end - s) * 4;
const int idx_count = (int)(text_end - s) * 6;