aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-24 13:45:10 +0000
committerVaxry <[email protected]>2023-11-24 13:45:10 +0000
commit334d0ae31b9b192b6d8c35a40bc83f9076d22b9d (patch)
tree3700721151ac25cfdbb9fe56328fd5652df3e3f2
parentbe3d635265331543b37c6106185fbb67b1293fb3 (diff)
downloadHyprland-334d0ae31b9b192b6d8c35a40bc83f9076d22b9d.tar.gz
Hyprland-334d0ae31b9b192b6d8c35a40bc83f9076d22b9d.zip
monitor: fix transform matrix calculations for transformed
fixes #3929
-rw-r--r--src/helpers/Monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 833a7a5a..f626bb3d 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -647,7 +647,7 @@ Vector2D CMonitor::middle() {
void CMonitor::updateMatrix() {
wlr_matrix_identity(projMatrix.data());
if (transform != WL_OUTPUT_TRANSFORM_NORMAL) {
- wlr_matrix_translate(projMatrix.data(), vecTransformedSize.x / 2.0, vecTransformedSize.y / 2.0);
+ wlr_matrix_translate(projMatrix.data(), vecPixelSize.x / 2.0, vecPixelSize.y / 2.0);
wlr_matrix_transform(projMatrix.data(), transform);
wlr_matrix_translate(projMatrix.data(), -vecTransformedSize.x / 2.0, -vecTransformedSize.y / 2.0);
}