mirror of
https://github.com/Trensa-Organization/Hyprland.git
synced 2025-03-16 03:03:40 +01:00
renderer: adjust distribution of backgrounds
This commit is contained in:
parent
f6b340cc19
commit
603de16f9a
1 changed files with 2 additions and 2 deletions
|
@ -1604,10 +1604,10 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) {
|
||||||
|
|
||||||
std::random_device dev;
|
std::random_device dev;
|
||||||
std::mt19937 engine(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);
|
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
|
// release the last tex if exists
|
||||||
const auto PTEX = &m_mMonitorBGTextures[pMonitor];
|
const auto PTEX = &m_mMonitorBGTextures[pMonitor];
|
||||||
|
|
Loading…
Add table
Reference in a new issue