Skip to content

Commit c345694

Browse files
committed
math: include cstring for memset
fixup name too
1 parent fabc30d commit c345694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/math/Math.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "Math.hpp"
22
#include <unordered_map>
3+
#include <cstring>
34

45
Hyprutils::Math::eTransform wlTransformToHyprutils(wl_output_transform t) {
56
switch (t) {
@@ -208,7 +209,7 @@ void projectBox(float mat[9], CBox& box, eTransform transform, float rotation, c
208209
matrixTranslate(mat, -width / 2, -height / 2);
209210
}
210211

211-
wlr_matrix_scale(mat, width, height);
212+
matrixScale(mat, width, height);
212213

213214
if (transform != HYPRUTILS_TRANSFORM_NORMAL) {
214215
matrixTranslate(mat, 0.5, 0.5);

0 commit comments

Comments
 (0)