3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-08-18 11:02:10 +00:00
Files
Hyprland/tests/render/MonitorZoom.cpp
Vaxry 901881c9f2 render: always render in normal transform (#15714)
fixes a lot of effects needing to know about the output transform, screencopy, etc.
2026-08-04 14:33:08 +02:00

14 lines
413 B
C++

#include <output/MonitorZoomController.hpp>
#include <gtest/gtest.h>
TEST(Render, monitorZoomDamagesActiveAndTransitionFrames) {
Monitor::CMonitorZoomController zoom;
EXPECT_FALSE(zoom.shouldDamageEntire(1.F));
EXPECT_TRUE(zoom.shouldDamageEntire(2.F));
EXPECT_TRUE(zoom.shouldDamageEntire(2.F));
EXPECT_TRUE(zoom.shouldDamageEntire(1.F));
EXPECT_FALSE(zoom.shouldDamageEntire(1.F));
}