mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-24 01:06:59 +00:00
Allow exactly 1x20 aspect in photos.
This commit is contained in:
parent
7e9302fce8
commit
e4ac810773
@ -205,8 +205,8 @@ int MaxAlbumItems() {
|
||||
bool ValidateThumbDimensions(int width, int height) {
|
||||
return (width > 0)
|
||||
&& (height > 0)
|
||||
&& (width < 20 * height)
|
||||
&& (height < 20 * width);
|
||||
&& (width <= 20 * height)
|
||||
&& (height <= 20 * width);
|
||||
}
|
||||
|
||||
std::vector<PreparedGroup> DivideByGroups(
|
||||
|
Loading…
Reference in New Issue
Block a user