diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index d84c7ae9..9dc868b9 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -670,7 +670,7 @@ struct Imgui nvgEndFrame(m_nvg); } - bool beginScrollArea(const char* _name, int32_t _x, int32_t _y, int32_t _width, int32_t _height, int32_t* _scroll, int32_t _r, bool _enabled) + bool beginScrollArea(const char* _name, int32_t _x, int32_t _y, int32_t _width, int32_t _height, int32_t* _scroll, bool _enabled, int32_t _r) { m_areaId++; m_widgetId = 0; @@ -2468,9 +2468,9 @@ bool imguiBorderButton(ImguiBorder::Enum _border, bool _checked, bool _enabled) return s_imgui.borderButton(_border, _checked, _enabled); } -bool imguiBeginScrollArea(const char* _name, int32_t _x, int32_t _y, int32_t _width, int32_t _height, int32_t* _scroll, int32_t _r, bool _enabled) +bool imguiBeginScrollArea(const char* _name, int32_t _x, int32_t _y, int32_t _width, int32_t _height, int32_t* _scroll, bool _enabled, int32_t _r) { - return s_imgui.beginScrollArea(_name, _x, _y, _width, _height, _scroll, _r, _enabled); + return s_imgui.beginScrollArea(_name, _x, _y, _width, _height, _scroll, _enabled, _r); } void imguiEndScrollArea() diff --git a/examples/common/imgui/imgui.h b/examples/common/imgui/imgui.h index 66d25a37..5e789173 100644 --- a/examples/common/imgui/imgui.h +++ b/examples/common/imgui/imgui.h @@ -90,7 +90,7 @@ void imguiEndFrame(); /// Notice: this function is not to be called between imguiBeginScrollArea() and imguiEndScrollArea(). bool imguiBorderButton(ImguiBorder::Enum _border, bool _checked, bool _enabled = true); -bool imguiBeginScrollArea(const char* _name, int _x, int _y, int _width, int _height, int* _scroll, int32_t _r = 6, bool _enabled = true); +bool imguiBeginScrollArea(const char* _name, int _x, int _y, int _width, int _height, int* _scroll, bool _enabled = true, int32_t _r = 6); void imguiEndScrollArea(); void imguiIndent(uint16_t _width = 16);