diff --git a/include/pd/ui7/container/container.hpp b/include/pd/ui7/container/container.hpp index 6b85e25..7ecc367 100644 --- a/include/pd/ui7/container/container.hpp +++ b/include/pd/ui7/container/container.hpp @@ -48,7 +48,7 @@ class PD_API Container { */ Container(const fvec4& box) : pos(fvec2(box.x, box.y)), size(fvec2(box.z - box.x, box.w - box.y)) {} - ~Container() = default; + virtual ~Container() = default; /** * Init Function Required by every Object that uses diff --git a/source/ui7/io.cpp b/source/ui7/io.cpp index 875a041..dd2bc04 100644 --- a/source/ui7/io.cpp +++ b/source/ui7/io.cpp @@ -28,7 +28,7 @@ SOFTWARE. namespace PD { -PD_API UI7::IO::IO() : DeltaStats(60), CurrentViewPort("", 0) { +PD_API UI7::IO::IO() : CurrentViewPort("", 0), DeltaStats(60) { /** Probably not the best solution i guess */ // CurrentViewPort = // ViewPort::New("Default", ivec4(ivec2(0, 0), pCtx.Gfx()->ViewPort)); diff --git a/source/ui7/menu.cpp b/source/ui7/menu.cpp index b52ebcf..8511f7b 100755 --- a/source/ui7/menu.cpp +++ b/source/ui7/menu.cpp @@ -27,7 +27,7 @@ SOFTWARE. namespace PD { namespace UI7 { -Menu::Menu(const ID& id, IO& io) : pIO(io), pID(id), pLayout(id, io) { +Menu::Menu(const ID& id, IO& io) : pLayout(id, io), pIO(io), pID(id) { TitleBarHeight = pIO.FontScale * pIO.Font->PixelHeight + pIO.MenuPadding.y; pLayout.WorkRect.y += TitleBarHeight; pLayout.Flags |= UI7LayoutFlags_UseClipRect; diff --git a/source/ui7/ui7.cpp b/source/ui7/ui7.cpp index 6cf9b7d..cd7f73e 100644 --- a/source/ui7/ui7.cpp +++ b/source/ui7/ui7.cpp @@ -158,7 +158,7 @@ PD_API void Context::AboutMenu(bool* show) { if (auto m = BeginMenu("About UI7", UI7MenuFlags_Scrolling, show)) { m->Label("Palladium UI7 " + GetVersion()); m->Separator(); - m->Label("(c) 2023-2025 René Amthor"); + m->Label("(c) 2023-2026 René Amthor"); m->Label("UI7 is licensed under the MIT License."); m->Label("See LICENSE for more information."); static bool show_build;