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

@@ -81,6 +81,11 @@ const CGSize TGPhotoPaintingMaxSize = { 1920.0f, 1920.0f };
_context = context;
_stickersContext = stickersContext;
if (entitiesView != nil) {
_skipEntitiesSetup = true;
entitiesView.userInteractionEnabled = true;
}
CGSize size = TGScaleToSize(photoEditor.originalSize, [TGPhotoDrawingController maximumPaintingSize]);
_drawingAdapter = [_stickersContext drawingAdapter:size originalSize:photoEditor.originalSize isVideo:photoEditor.forVideo isAvatar:isAvatar entitiesView:entitiesView];
_interfaceController = (UIViewController<TGPhotoDrawingInterfaceController> *)_drawingAdapter.interfaceController;