fixed examples

This commit is contained in:
Jorijn van der Graaf 2025-11-27 00:17:06 +01:00
commit 70f05160c5
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ int main() {
WindowWayland window(1280, 720, "Hello Input!");
RenderingElementScaling element(
true, //opaque, wether the element is opague or semi-transparant
OpaqueType::FullyOpaque, //opaque, wether the element is opague or semi-transparant
2, //bufferWidth: the width of this elements pixel buffer
1, //bufferHeight: the height of this elements pixel buffer
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor

View file

@ -7,7 +7,7 @@ int main() {
WindowWayland window(1280, 720, "Hello Input!");
RenderingElement element(
true,
OpaqueType::FullyOpaque,
2,
1,
FractionalToMapped(0.5), //anchorX: relative position where this elements x anchor (top-left) is placed to its parent x anchor