mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-28 10:04:30 -05:00
fixes a lot of effects needing to know about the output transform, screencopy, etc.
14 lines
413 B
C++
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));
|
|
}
|