summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-07 04:20:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-07 04:20:30 +0200
commit4764df57de6b784a12f86bbb9f63f594b137658b (patch)
treec57e3f95ce5aadf0acc36830be18399c52c3ab7c
parent6ae3651048efc81605a3f1c4b9ae2af7d257b626 (diff)
d inspector
-rw-r--r--editor/inspect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 349b5e3d..821a1127 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -34,7 +34,7 @@ bool eqv(float a, float b) { return std::fabs(a - b) < 1e-8f; }
bool eqv(const String& a, const String& b) { return a == b; }
template<typename T, size_t N> constexpr bool eqv(const Math::Vector<N, T>& a, const Math::Vector<N, T>& b) { return a == b; }
-int corrade_string_resize_callback(ImGuiInputTextCallbackData* data)
+int on_string_resize(ImGuiInputTextCallbackData* data)
{
if (data->EventFlag == ImGuiInputTextFlags_CallbackResize)
{
@@ -86,7 +86,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r
ret = ImGui::InputText(label, const_cast<char*>(value.data()), value.size(), ImGuiInputTextFlags_ReadOnly);
else if constexpr(std::is_same_v<T, String>)
{
- ret = ImGui::InputText(label, value.begin(), value.size()+1, ImGuiInputTextFlags_CallbackResize, corrade_string_resize_callback, &value);
+ ret = ImGui::InputText(label, value.begin(), value.size()+1, ImGuiInputTextFlags_CallbackResize, on_string_resize, &value);
if (ret)
{
auto size = value.size();