mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
LibGfx+LibMedia+LibWeb: Use new Matrix subscript operator
This commit is contained in:
parent
423e944a92
commit
9a8599f265
Notes:
github-actions[bot]
2025-07-28 07:16:42 +00:00
Author: https://github.com/ion232
Commit: 9a8599f265
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5613
Reviewed-by: https://github.com/gmta ✅
11 changed files with 165 additions and 174 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue