aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-07-24 18:29:04 +0200
committervaxerski <[email protected]>2023-07-24 18:30:00 +0200
commit603de16f9a98688b79f19baa24d6e2c0346545f5 (patch)
tree803458e6c9e4c16e0bee297ee21bb8b740d27b71
parentf6b340cc19d2b1fdca0ae2e72a18c87c63893507 (diff)
downloadHyprland-603de16f9a98688b79f19baa24d6e2c0346545f5.tar.gz
Hyprland-603de16f9a98688b79f19baa24d6e2c0346545f5.zip
renderer: adjust distribution of backgrounds
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 1d142650..c0e070bd 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -1604,10 +1604,10 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) {
std::random_device dev;
std::mt19937 engine(dev());
- std::uniform_int_distribution<> distribution(0, 10);
+ std::uniform_int_distribution<> distribution(0, 2);
std::uniform_int_distribution<> distribution2(0, 1);
- const bool USEANIME = *PFORCEHYPRCHAN || distribution(engine) % 2 == 0; // about 50% I think
+ const bool USEANIME = *PFORCEHYPRCHAN || distribution(engine) == 0; // 66% for anime
// release the last tex if exists
const auto PTEX = &m_mMonitorBGTextures[pMonitor];