'ImGui::CalcTextSize' cancels out character spacing at the end, but we do not want that, hence the custom function
| 90 | |
| 91 | // 'ImGui::CalcTextSize' cancels out character spacing at the end, but we do not want that, hence the custom function |
| 92 | static ImVec2 calc_text_size(const char *text, const char *text_end = nullptr) |
| 93 | { |
| 94 | return ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, -1.0f, text, text_end, nullptr); |
| 95 | } |
| 96 | |
| 97 | reshade::imgui::code_editor::code_editor() |
| 98 | { |
no test coverage detected