mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
fixed bg cache for tiled background, linux version background supported
This commit is contained in:
@@ -2272,7 +2272,7 @@ namespace App {
|
||||
componentsScroll[maxtomin[1]] = qMin(uint64(float64(componentsScroll[maxtomin[1]]) * maxScroll / float64(componentsScroll[maxtomin[0]])), 0xFFULL);
|
||||
componentsScroll[maxtomin[0]] = qMin(maxScroll, 0xFFULL);
|
||||
|
||||
if (max > qRound(0.2 * 0xFF)) { // brightness greater than 20%
|
||||
if (max > uint64(qRound(0.2 * 0xFF))) { // brightness greater than 20%
|
||||
max -= qRound(0.2 * 0xFF);
|
||||
} else {
|
||||
max = 0;
|
||||
|
Reference in New Issue
Block a user