From fc8291555e6f9a4157148cb0e5f6080369111034 Mon Sep 17 00:00:00 2001 From: tobid7 Date: Tue, 4 Feb 2025 21:44:27 +0100 Subject: [PATCH] # Stage 1.8.2 - Use Font in Static text for rerendering if the font changed ### TODO: Detect reloading the current font - Updated License notice in all Files --- LICENSE | 2 +- include/pd.hpp | 2 +- include/pd/common/app.hpp | 2 +- include/pd/common/common.hpp | 2 +- include/pd/common/error.hpp | 2 +- include/pd/common/io.hpp | 23 +++++++++++++++++++++++ include/pd/common/lang.hpp | 2 +- include/pd/common/memory.hpp | 2 +- include/pd/common/strings.hpp | 2 +- include/pd/common/sys.hpp | 2 +- include/pd/common/timer.hpp | 2 +- include/pd/common/timetrace.hpp | 2 +- include/pd/controls/hid.hpp | 23 +++++++++++++++++++++++ include/pd/graphics/lithium.hpp | 6 +++++- include/pd/graphics/rect.hpp | 23 +++++++++++++++++++++++ include/pd/graphics/screen.hpp | 2 +- include/pd/graphics/spritesheet.hpp | 23 +++++++++++++++++++++++ include/pd/graphics/texture.hpp | 2 +- include/pd/maths/bit_util.hpp | 2 +- include/pd/maths/color.hpp | 2 +- include/pd/maths/img_convert.hpp | 2 +- include/pd/maths/tween.hpp | 23 +++++++++++++++++++++++ include/pd/maths/vec.hpp | 2 +- include/pd/overlays/keyboard.hpp | 23 +++++++++++++++++++++++ include/pd/overlays/message_mgr.hpp | 23 +++++++++++++++++++++++ include/pd/overlays/overlay.hpp | 23 +++++++++++++++++++++++ include/pd/overlays/overlay_mgr.hpp | 23 +++++++++++++++++++++++ include/pd/overlays/performance.hpp | 23 +++++++++++++++++++++++ include/pd/overlays/settings.hpp | 23 +++++++++++++++++++++++ include/pd/sound/sound.hpp | 2 +- include/pd/tools/gamepad_icons.hpp | 23 +++++++++++++++++++++++ include/pd/tools/markdown.hpp | 2 +- include/pd/tools/result_decoder.hpp | 2 +- include/pd/ui7/container/button.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/container/checkbox.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/container/container.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/container/image.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/container/label.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/containers.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/drawlist.hpp | 2 +- include/pd/ui7/flags.hpp | 2 +- include/pd/ui7/id.hpp | 23 +++++++++++++++++++++++ include/pd/ui7/menu.hpp | 2 +- include/pd/ui7/theme.hpp | 2 +- include/pd/ui7/ui7.hpp | 2 +- source/common/app.cpp | 2 +- source/common/common.cpp | 2 +- source/common/error.cpp | 2 +- source/common/io.cpp | 23 +++++++++++++++++++++++ source/common/lang.cpp | 2 +- source/common/strings.cpp | 2 +- source/common/sys.cpp | 2 +- source/common/timetrace.cpp | 2 +- source/controls/hid.cpp | 23 +++++++++++++++++++++++ source/graphics/lithium.cpp | 8 ++++++-- source/graphics/spritesheet.cpp | 23 +++++++++++++++++++++++ source/graphics/texture.cpp | 2 +- source/maths/bit_util.cpp | 2 +- source/maths/color.cpp | 2 +- source/maths/img_convert.cpp | 2 +- source/overlays/keyboard.cpp | 23 +++++++++++++++++++++++ source/overlays/message_mgr.cpp | 23 +++++++++++++++++++++++ source/overlays/overlay_mgr.cpp | 23 +++++++++++++++++++++++ source/overlays/performance.cpp | 23 +++++++++++++++++++++++ source/tools/gamepad_icons.cpp | 23 +++++++++++++++++++++++ source/tools/result_decoder.cpp | 2 +- source/ui7/container/button.cpp | 23 +++++++++++++++++++++++ source/ui7/container/checkbox.cpp | 23 +++++++++++++++++++++++ source/ui7/container/container.cpp | 23 +++++++++++++++++++++++ source/ui7/container/image.cpp | 23 +++++++++++++++++++++++ source/ui7/container/label.cpp | 23 +++++++++++++++++++++++ source/ui7/drawlist.cpp | 8 ++++++-- source/ui7/menu.cpp | 23 +++++++++++++++++++++++ source/ui7/theme.cpp | 23 +++++++++++++++++++++++ source/ui7/ui7.cpp | 23 +++++++++++++++++++++++ test/app/main.cpp | 2 +- test/bench/main.cpp | 23 +++++++++++++++++++++++ 77 files changed, 883 insertions(+), 43 deletions(-) diff --git a/LICENSE b/LICENSE index 3df247e..d1f9ceb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd.hpp b/include/pd.hpp index d5d2f2b..9dcc22a 100644 --- a/include/pd.hpp +++ b/include/pd.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/app.hpp b/include/pd/common/app.hpp index f8695b0..18f13b1 100644 --- a/include/pd/common/app.hpp +++ b/include/pd/common/app.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/common.hpp b/include/pd/common/common.hpp index 8adff7e..0818344 100644 --- a/include/pd/common/common.hpp +++ b/include/pd/common/common.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/error.hpp b/include/pd/common/error.hpp index 96892b0..d797fdf 100644 --- a/include/pd/common/error.hpp +++ b/include/pd/common/error.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/io.hpp b/include/pd/common/io.hpp index 3cdb208..d7f576d 100644 --- a/include/pd/common/io.hpp +++ b/include/pd/common/io.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/common/lang.hpp b/include/pd/common/lang.hpp index d38b69f..512319c 100644 --- a/include/pd/common/lang.hpp +++ b/include/pd/common/lang.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/memory.hpp b/include/pd/common/memory.hpp index 96a09ad..6a82fb3 100644 --- a/include/pd/common/memory.hpp +++ b/include/pd/common/memory.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/strings.hpp b/include/pd/common/strings.hpp index 62bfb49..a94c3cd 100644 --- a/include/pd/common/strings.hpp +++ b/include/pd/common/strings.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/sys.hpp b/include/pd/common/sys.hpp index 15db41f..122c783 100644 --- a/include/pd/common/sys.hpp +++ b/include/pd/common/sys.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/timer.hpp b/include/pd/common/timer.hpp index 3a0d3be..0b14d2b 100644 --- a/include/pd/common/timer.hpp +++ b/include/pd/common/timer.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/common/timetrace.hpp b/include/pd/common/timetrace.hpp index 56696b9..15edcb9 100644 --- a/include/pd/common/timetrace.hpp +++ b/include/pd/common/timetrace.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/controls/hid.hpp b/include/pd/controls/hid.hpp index 62aebed..ccbb1dc 100644 --- a/include/pd/controls/hid.hpp +++ b/include/pd/controls/hid.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/graphics/lithium.hpp b/include/pd/graphics/lithium.hpp index 6ad3639..0220f99 100644 --- a/include/pd/graphics/lithium.hpp +++ b/include/pd/graphics/lithium.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -338,7 +338,11 @@ class Renderer : public SmartCtor { void Draw(); + void Font(Font::Ref fnt) { font = fnt; } + Font::Ref Font() { return font; } + private: + Font::Ref font; bool used; Renderer* ren; vec2 tdim; diff --git a/include/pd/graphics/rect.hpp b/include/pd/graphics/rect.hpp index 0467e2f..e38a5d9 100644 --- a/include/pd/graphics/rect.hpp +++ b/include/pd/graphics/rect.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/graphics/screen.hpp b/include/pd/graphics/screen.hpp index c249c85..a6c5bbe 100644 --- a/include/pd/graphics/screen.hpp +++ b/include/pd/graphics/screen.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/graphics/spritesheet.hpp b/include/pd/graphics/spritesheet.hpp index 964ddac..1673479 100644 --- a/include/pd/graphics/spritesheet.hpp +++ b/include/pd/graphics/spritesheet.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/graphics/texture.hpp b/include/pd/graphics/texture.hpp index f6bd1a6..4b94450 100644 --- a/include/pd/graphics/texture.hpp +++ b/include/pd/graphics/texture.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/maths/bit_util.hpp b/include/pd/maths/bit_util.hpp index ecb6fcf..84741ce 100644 --- a/include/pd/maths/bit_util.hpp +++ b/include/pd/maths/bit_util.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/maths/color.hpp b/include/pd/maths/color.hpp index 17ea1c0..12d6125 100644 --- a/include/pd/maths/color.hpp +++ b/include/pd/maths/color.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/maths/img_convert.hpp b/include/pd/maths/img_convert.hpp index c562d92..058750f 100644 --- a/include/pd/maths/img_convert.hpp +++ b/include/pd/maths/img_convert.hpp @@ -3,7 +3,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/maths/tween.hpp b/include/pd/maths/tween.hpp index af1c3d2..3f0e0b4 100644 --- a/include/pd/maths/tween.hpp +++ b/include/pd/maths/tween.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/maths/vec.hpp b/include/pd/maths/vec.hpp index 96f8262..4d1c85d 100644 --- a/include/pd/maths/vec.hpp +++ b/include/pd/maths/vec.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/overlays/keyboard.hpp b/include/pd/overlays/keyboard.hpp index 7330caf..51f8830 100644 --- a/include/pd/overlays/keyboard.hpp +++ b/include/pd/overlays/keyboard.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/overlays/message_mgr.hpp b/include/pd/overlays/message_mgr.hpp index ec4e34a..fb46a58 100644 --- a/include/pd/overlays/message_mgr.hpp +++ b/include/pd/overlays/message_mgr.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/overlays/overlay.hpp b/include/pd/overlays/overlay.hpp index bf11a25..56807fa 100644 --- a/include/pd/overlays/overlay.hpp +++ b/include/pd/overlays/overlay.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/overlays/overlay_mgr.hpp b/include/pd/overlays/overlay_mgr.hpp index 76fc7ec..da8c19e 100644 --- a/include/pd/overlays/overlay_mgr.hpp +++ b/include/pd/overlays/overlay_mgr.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/overlays/performance.hpp b/include/pd/overlays/performance.hpp index b62982a..3c33e2c 100644 --- a/include/pd/overlays/performance.hpp +++ b/include/pd/overlays/performance.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/overlays/settings.hpp b/include/pd/overlays/settings.hpp index fd786d1..a185647 100644 --- a/include/pd/overlays/settings.hpp +++ b/include/pd/overlays/settings.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/sound/sound.hpp b/include/pd/sound/sound.hpp index 3989be1..95fe5cf 100644 --- a/include/pd/sound/sound.hpp +++ b/include/pd/sound/sound.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/tools/gamepad_icons.hpp b/include/pd/tools/gamepad_icons.hpp index 816ab6f..0dc0188 100644 --- a/include/pd/tools/gamepad_icons.hpp +++ b/include/pd/tools/gamepad_icons.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/tools/markdown.hpp b/include/pd/tools/markdown.hpp index bfe9ba2..994c983 100644 --- a/include/pd/tools/markdown.hpp +++ b/include/pd/tools/markdown.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/tools/result_decoder.hpp b/include/pd/tools/result_decoder.hpp index ec387e8..e51d8b7 100644 --- a/include/pd/tools/result_decoder.hpp +++ b/include/pd/tools/result_decoder.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/ui7/container/button.hpp b/include/pd/ui7/container/button.hpp index 8515113..340b3f5 100644 --- a/include/pd/ui7/container/button.hpp +++ b/include/pd/ui7/container/button.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/ui7/container/checkbox.hpp b/include/pd/ui7/container/checkbox.hpp index 85674fb..c8b5163 100644 --- a/include/pd/ui7/container/checkbox.hpp +++ b/include/pd/ui7/container/checkbox.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/ui7/container/container.hpp b/include/pd/ui7/container/container.hpp index 7a3c329..9bfa0a8 100644 --- a/include/pd/ui7/container/container.hpp +++ b/include/pd/ui7/container/container.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/ui7/container/image.hpp b/include/pd/ui7/container/image.hpp index 0bba441..ccb6f9f 100644 --- a/include/pd/ui7/container/image.hpp +++ b/include/pd/ui7/container/image.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/ui7/container/label.hpp b/include/pd/ui7/container/label.hpp index 15283b7..411e32d 100644 --- a/include/pd/ui7/container/label.hpp +++ b/include/pd/ui7/container/label.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/include/pd/ui7/containers.hpp b/include/pd/ui7/containers.hpp index 135a69d..c34e60f 100644 --- a/include/pd/ui7/containers.hpp +++ b/include/pd/ui7/containers.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/include/pd/ui7/drawlist.hpp b/include/pd/ui7/drawlist.hpp index ca01312..ecc0f52 100644 --- a/include/pd/ui7/drawlist.hpp +++ b/include/pd/ui7/drawlist.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/ui7/flags.hpp b/include/pd/ui7/flags.hpp index 6df9855..90b28f4 100644 --- a/include/pd/ui7/flags.hpp +++ b/include/pd/ui7/flags.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/ui7/id.hpp b/include/pd/ui7/id.hpp index 21de6f1..b31c50b 100644 --- a/include/pd/ui7/id.hpp +++ b/include/pd/ui7/id.hpp @@ -1,5 +1,28 @@ #pragma once +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/include/pd/ui7/menu.hpp b/include/pd/ui7/menu.hpp index d866360..7c9bb30 100644 --- a/include/pd/ui7/menu.hpp +++ b/include/pd/ui7/menu.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/ui7/theme.hpp b/include/pd/ui7/theme.hpp index ab91a8d..88b7c7c 100644 --- a/include/pd/ui7/theme.hpp +++ b/include/pd/ui7/theme.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/include/pd/ui7/ui7.hpp b/include/pd/ui7/ui7.hpp index c8ebcd0..524decb 100644 --- a/include/pd/ui7/ui7.hpp +++ b/include/pd/ui7/ui7.hpp @@ -2,7 +2,7 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/app.cpp b/source/common/app.cpp index 781f086..6332289 100644 --- a/source/common/app.cpp +++ b/source/common/app.cpp @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/common.cpp b/source/common/common.cpp index 6e9c623..a849977 100644 --- a/source/common/common.cpp +++ b/source/common/common.cpp @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/error.cpp b/source/common/error.cpp index 297a995..c69a495 100644 --- a/source/common/error.cpp +++ b/source/common/error.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/io.cpp b/source/common/io.cpp index e9c20b1..b523860 100644 --- a/source/common/io.cpp +++ b/source/common/io.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/common/lang.cpp b/source/common/lang.cpp index 836723b..01f1346 100644 --- a/source/common/lang.cpp +++ b/source/common/lang.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/strings.cpp b/source/common/strings.cpp index ca9ffd9..5b607b5 100644 --- a/source/common/strings.cpp +++ b/source/common/strings.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/sys.cpp b/source/common/sys.cpp index c726684..f39525b 100644 --- a/source/common/sys.cpp +++ b/source/common/sys.cpp @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/common/timetrace.cpp b/source/common/timetrace.cpp index 0873a37..91bea17 100644 --- a/source/common/timetrace.cpp +++ b/source/common/timetrace.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/controls/hid.cpp b/source/controls/hid.cpp index db869e0..6fb858f 100644 --- a/source/controls/hid.cpp +++ b/source/controls/hid.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include <3ds.h> #include diff --git a/source/graphics/lithium.cpp b/source/graphics/lithium.cpp index a2a28cb..6f2a202 100644 --- a/source/graphics/lithium.cpp +++ b/source/graphics/lithium.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -727,6 +727,9 @@ void Renderer::DrawImage(const vec2& pos, Texture::Ref tex, const vec2& scale) { void Renderer::DrawText(const vec2& pos, u32 color, const std::string& text, u32 flags, const vec2& ap) { + if (!font) { + return; + } if (this->flags & RenderFlags_AST) { u32 id = Strings::FastHash(text); auto e = ast.find(id); @@ -734,8 +737,9 @@ void Renderer::DrawText(const vec2& pos, u32 color, const std::string& text, ast[id] = StaticText::New(); e = ast.find(id); } - if (!e->second->IsSetup()) { + if (!e->second->IsSetup() || e->second->Font() != font) { e->second->Setup(this, pos, color, text, flags, ap); + e->second->Font(font); } e->second->SetPos(pos); e->second->SetColor(color); diff --git a/source/graphics/spritesheet.cpp b/source/graphics/spritesheet.cpp index 5205ac7..a11223d 100644 --- a/source/graphics/spritesheet.cpp +++ b/source/graphics/spritesheet.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/source/graphics/texture.cpp b/source/graphics/texture.cpp index 21dff2b..a1755ab 100644 --- a/source/graphics/texture.cpp +++ b/source/graphics/texture.cpp @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/maths/bit_util.cpp b/source/maths/bit_util.cpp index 333c620..ef71fa7 100644 --- a/source/maths/bit_util.cpp +++ b/source/maths/bit_util.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/maths/color.cpp b/source/maths/color.cpp index f0d7051..a9a7e20 100644 --- a/source/maths/color.cpp +++ b/source/maths/color.cpp @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2024 tobid7 +Copyright (c) 2024 - 2025 tobid7 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/maths/img_convert.cpp b/source/maths/img_convert.cpp index 9ef62a8..216ff3c 100644 --- a/source/maths/img_convert.cpp +++ b/source/maths/img_convert.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/overlays/keyboard.cpp b/source/overlays/keyboard.cpp index c7c6e7a..16143ad 100644 --- a/source/overlays/keyboard.cpp +++ b/source/overlays/keyboard.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/source/overlays/message_mgr.cpp b/source/overlays/message_mgr.cpp index 57e1748..44457e2 100644 --- a/source/overlays/message_mgr.cpp +++ b/source/overlays/message_mgr.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/overlays/overlay_mgr.cpp b/source/overlays/overlay_mgr.cpp index 58e2469..16d68bd 100644 --- a/source/overlays/overlay_mgr.cpp +++ b/source/overlays/overlay_mgr.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/overlays/performance.cpp b/source/overlays/performance.cpp index e090ba9..d87b338 100644 --- a/source/overlays/performance.cpp +++ b/source/overlays/performance.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/source/tools/gamepad_icons.cpp b/source/tools/gamepad_icons.cpp index f682472..fd13f5f 100644 --- a/source/tools/gamepad_icons.cpp +++ b/source/tools/gamepad_icons.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/tools/result_decoder.cpp b/source/tools/result_decoder.cpp index 65af18f..46895c7 100644 --- a/source/tools/result_decoder.cpp +++ b/source/tools/result_decoder.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/source/ui7/container/button.cpp b/source/ui7/container/button.cpp index 6d3f8d8..f3787bd 100644 --- a/source/ui7/container/button.cpp +++ b/source/ui7/container/button.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/ui7/container/checkbox.cpp b/source/ui7/container/checkbox.cpp index 49a019a..a7777f0 100644 --- a/source/ui7/container/checkbox.cpp +++ b/source/ui7/container/checkbox.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/ui7/container/container.cpp b/source/ui7/container/container.cpp index a379358..0db0652 100644 --- a/source/ui7/container/container.cpp +++ b/source/ui7/container/container.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/source/ui7/container/image.cpp b/source/ui7/container/image.cpp index af9e1fa..be23e31 100644 --- a/source/ui7/container/image.cpp +++ b/source/ui7/container/image.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/ui7/container/label.cpp b/source/ui7/container/label.cpp index a744c0d..9c56da2 100644 --- a/source/ui7/container/label.cpp +++ b/source/ui7/container/label.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include namespace PD { diff --git a/source/ui7/drawlist.cpp b/source/ui7/drawlist.cpp index 26623bd..7a1f314 100644 --- a/source/ui7/drawlist.cpp +++ b/source/ui7/drawlist.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -56,16 +56,20 @@ void DrawList::AddTriangle(vec2 pos0, vec2 pos1, vec2 pos2, void DrawList::AddText(vec2 pos, const std::string& text, const UI7Color& clr, LITextFlags flags, vec2 box) { + if (!ren->Font()) { + return; + } u32 id = Strings::FastHash(text); auto e = static_text.find(id); if (e == static_text.end()) { static_text[id] = LI::Renderer::StaticText::New(); e = static_text.find(id); } - if (!e->second->IsSetup()) { + if (!e->second->IsSetup() || e->second->Font() != ren->Font()) { int l = ren->Layer(); ren->Layer(base); e->second->Setup(&(*ren), pos, clr, text, flags, box); + e->second->Font(ren->Font()); ren->Layer(l); } e->second->SetPos(pos); diff --git a/source/ui7/menu.cpp b/source/ui7/menu.cpp index a4cd23d..d18b14f 100644 --- a/source/ui7/menu.cpp +++ b/source/ui7/menu.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include #include diff --git a/source/ui7/theme.cpp b/source/ui7/theme.cpp index 55b4db7..33b10e0 100644 --- a/source/ui7/theme.cpp +++ b/source/ui7/theme.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/source/ui7/ui7.cpp b/source/ui7/ui7.cpp index 90f7a68..72f646c 100644 --- a/source/ui7/ui7.cpp +++ b/source/ui7/ui7.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include #include diff --git a/test/app/main.cpp b/test/app/main.cpp index 7cf1aea..c2ead3b 100644 --- a/test/app/main.cpp +++ b/test/app/main.cpp @@ -1,6 +1,6 @@ /* MIT License -Copyright (c) 2024 René Amthor (tobid7) +Copyright (c) 2024 - 2025 René Amthor (tobid7) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/test/bench/main.cpp b/test/bench/main.cpp index 57b0c24..5cb650f 100644 --- a/test/bench/main.cpp +++ b/test/bench/main.cpp @@ -1,3 +1,26 @@ +/* +MIT License +Copyright (c) 2024 - 2025 René Amthor (tobid7) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + */ + #include struct StatsRes {