Various fixes

This commit is contained in:
Ilya Laktyushin
2022-12-25 21:16:27 +04:00
parent c98abdd025
commit 4afc8c1af3
5 changed files with 56 additions and 89 deletions

View File

@@ -336,7 +336,8 @@
_fullPaintingView = [[UIImageView alloc] init];
_fullPaintingView.frame = _fullPreviewView.frame;
_fullEntitiesView = [_stickersContext drawingEntitiesViewWithSize:_photoEditor.originalSize];
CGSize size = TGScaleToSize(_photoEditor.originalSize, [TGPhotoDrawingController maximumPaintingSize]);
_fullEntitiesView = [_stickersContext drawingEntitiesViewWithSize:size];
_fullEntitiesView.userInteractionEnabled = false;
CGRect rect = [TGPhotoDrawingController fittedCropRect:_photoEditor.cropRect originalSize:_photoEditor.originalSize keepOriginalSize:true];
_fullEntitiesView.frame = CGRectMake(0, 0, rect.size.width, rect.size.height);