Skip to content

Commit

Permalink
fix compile issue with latest ImGui
Browse files Browse the repository at this point in the history
  • Loading branch information
epezent committed Sep 28, 2020
1 parent 90cbb56 commit da5b4ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da5b4ab

Please sign in to comment.