aboutsummaryrefslogtreecommitdiff
path: root/src/engine/bounds.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-18 19:31:03 +0100
committerHampusM <hampus@hampusmat.com>2022-02-18 19:31:03 +0100
commite206dc1cf625f28149c19eb4dfcbf495ef0efbb4 (patch)
treebdcc6152dbce14f27a17b1a33814b0f8e365969f /src/engine/bounds.cpp
parent3e4d91b6b029374813cfd0900db1fa8984ad7aa3 (diff)
refactor: improve options of all kindsHEADmaster
Diffstat (limited to 'src/engine/bounds.cpp')
-rw-r--r--src/engine/bounds.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/bounds.cpp b/src/engine/bounds.cpp
index 782fd02..aa54439 100644
--- a/src/engine/bounds.cpp
+++ b/src/engine/bounds.cpp
@@ -1,6 +1,9 @@
#include "bounds.hpp"
-Bounds::Bounds(BoundsOpts opts) : _width(opts.width), _height(opts.height) {}
+Bounds::Bounds(const BoundsOptions &options)
+ : _width(options.width), _height(options.height)
+{
+}
unsigned int Bounds::width() const
{