aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/hyprerror
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-14 16:43:29 +0200
committervaxerski <[email protected]>2022-04-14 16:43:29 +0200
commit75af34da96b80a3d228a25e8c75ba1137df9e058 (patch)
treee280c5cff2ee24b15141413a18d3cbd693ef8869 /src/hyprerror
parent158af1eb090dbae7650e99878942363651c216e3 (diff)
downloadHyprland-75af34da96b80a3d228a25e8c75ba1137df9e058.tar.gz
Hyprland-75af34da96b80a3d228a25e8c75ba1137df9e058.zip
added basic damage tracking
Diffstat (limited to 'src/hyprerror')
-rw-r--r--src/hyprerror/HyprError.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp
index f02260d0..a26ad4c3 100644
--- a/src/hyprerror/HyprError.cpp
+++ b/src/hyprerror/HyprError.cpp
@@ -101,12 +101,9 @@ void CHyprError::draw() {
if (g_pHyprOpenGL->m_RenderData.pMonitor != PMONITOR)
return; // wrong mon
- const auto TRANSFORM = wlr_output_transform_invert(WL_OUTPUT_TRANSFORM_NORMAL);
- float matrix[9];
wlr_box windowBox = {0, 0, PMONITOR->vecSize.x, PMONITOR->vecSize.y};
- wlr_matrix_project_box(matrix, &windowBox, TRANSFORM, 0, PMONITOR->output->transform_matrix);
- g_pHyprOpenGL->renderTexture(m_tTexture, matrix, 255.f, 0);
+ g_pHyprOpenGL->renderTexture(m_tTexture, &windowBox, 255.f, 0);
}
void CHyprError::destroy() {