From ddd9bb4e995ef92db5a73902036d5fda5a3927e2 Mon Sep 17 00:00:00 2001 From: Bruno Date: Sat, 7 Aug 2021 20:26:59 +0200 Subject: [PATCH] minor compilation fix --- ImGuiToolkit.cpp | 3 ++- MixingView.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ImGuiToolkit.cpp b/ImGuiToolkit.cpp index e946026..658e99f 100644 --- a/ImGuiToolkit.cpp +++ b/ImGuiToolkit.cpp @@ -1272,13 +1272,14 @@ void ImGuiToolkit::ImageGlyph(font_style type, char c, float h) { ImGuiIO& io = ImGui::GetIO(); const ImTextureID my_tex_id = io.Fonts->TexID; - const ImFontGlyph*glyph = fontmap[type]->FindGlyph(c); + const ImFontGlyph* glyph = fontmap[type]->FindGlyph(c); const ImVec2 size( h * (glyph->X1 - glyph->X0) / (glyph->Y1 - glyph->Y0) , h); const ImVec2 uv0( glyph->U0, glyph->V0); const ImVec2 uv1( glyph->U1, glyph->V1); ImGui::Image((void*)(intptr_t)my_tex_id, size, uv0, uv1); } + void ImGuiToolkit::WindowText(const char* window_name, ImVec2 window_pos, const char* text) { ImGui::SetNextWindowPos(window_pos, ImGuiCond_Always); diff --git a/MixingView.cpp b/MixingView.cpp index 6a1ff46..f13a246 100644 --- a/MixingView.cpp +++ b/MixingView.cpp @@ -625,7 +625,7 @@ void MixingView::updateSelectionOverlay() } #define CIRCLE_PIXELS 64 -#define CIRCLE_PIXEL_RADIUS 1024.0 +#define CIRCLE_PIXEL_RADIUS 1024.f //#define CIRCLE_PIXELS 256 //#define CIRCLE_PIXEL_RADIUS 16384.0 //#define CIRCLE_PIXELS 1024