mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Allow exactly 1x20 aspect in photos.
This commit is contained in:
parent
7e9302fce8
commit
e4ac810773
1 changed files with 2 additions and 2 deletions
|
@ -205,8 +205,8 @@ int MaxAlbumItems() {
|
||||||
bool ValidateThumbDimensions(int width, int height) {
|
bool ValidateThumbDimensions(int width, int height) {
|
||||||
return (width > 0)
|
return (width > 0)
|
||||||
&& (height > 0)
|
&& (height > 0)
|
||||||
&& (width < 20 * height)
|
&& (width <= 20 * height)
|
||||||
&& (height < 20 * width);
|
&& (height <= 20 * width);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<PreparedGroup> DivideByGroups(
|
std::vector<PreparedGroup> DivideByGroups(
|
||||||
|
|
Loading…
Add table
Reference in a new issue