diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-24 18:29:04 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-24 18:30:00 +0200 |
| commit | 603de16f9a98688b79f19baa24d6e2c0346545f5 (patch) | |
| tree | 803458e6c9e4c16e0bee297ee21bb8b740d27b71 /src/render/OpenGL.cpp | |
| parent | f6b340cc19d2b1fdca0ae2e72a18c87c63893507 (diff) | |
renderer: adjust distribution of backgrounds
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 4 |
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]; |
