LibGfx+LibMedia+LibWeb: Use new Matrix subscript operator

This commit is contained in:
Arran Ireland 2025-07-27 12:44:14 +01:00 committed by Jelle Raaijmakers
parent 423e944a92
commit 9a8599f265
Notes: github-actions[bot] 2025-07-28 07:16:42 +00:00
11 changed files with 165 additions and 174 deletions

View file

@ -293,10 +293,9 @@ Gfx::AffineTransform StackingContext::affine_transform_matrix() const
static Gfx::FloatMatrix4x4 matrix_with_scaled_translation(Gfx::FloatMatrix4x4 matrix, float scale)
{
auto* m = matrix.elements();
m[0][3] *= scale;
m[1][3] *= scale;
m[2][3] *= scale;
matrix[0, 3] *= scale;
matrix[1, 3] *= scale;
matrix[2, 3] *= scale;
return matrix;
}