We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9af1c49 commit 5aaea23Copy full SHA for 5aaea23
1 file changed
src/ruis/widget/proxy/aspect_ratio_proxy.cpp
@@ -52,17 +52,17 @@ ruis::vec2 aspect_ratio_proxy::measure(const ruis::vec2& quotum) const
52
}
53
54
if (quotum.x() < 0) {
55
- return ruis::vec2(
+ return {
56
quotum.y() * this->params.x_above_y, //
57
quotum.y()
58
- );
+ };
59
60
61
if (quotum.y() < 0) {
62
63
quotum.x(), //
64
quotum.x() / this->params.x_above_y
65
66
67
68
return quotum;
0 commit comments