mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:49:49 +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::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];
|
||||
|
|
Loading…
Reference in a new issue