diff --git a/implot.cpp b/implot.cpp index 17047678..eb82d265 100644 --- a/implot.cpp +++ b/implot.cpp @@ -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;