small fixes

This commit is contained in:
2026-09-07 22:05:51 +02:00
parent 9e6c6fd84d
commit aec9083ebb
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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));
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;