mirror of
https://github.com/gwm17/implot.git
synced 2024-11-26 20:28:50 -05:00
fix compile issue with latest ImGui
This commit is contained in:
parent
90cbb561f0
commit
da5b4ab8d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user