Skip to content

Commit

Permalink
math: include cstring for memset
Browse files Browse the repository at this point in the history
 fixup name too
  • Loading branch information
vaxerski committed Jun 21, 2024
1 parent fabc30d commit c345694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/math/Math.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "Math.hpp"
#include <unordered_map>
#include <cstring>

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

wlr_matrix_scale(mat, width, height);
matrixScale(mat, width, height);

if (transform != HYPRUTILS_TRANSFORM_NORMAL) {
matrixTranslate(mat, 0.5, 0.5);
Expand Down

0 comments on commit c345694

Please sign in to comment.