Skip to content

Commit

Permalink
ios: more metal improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
z-dule committed Aug 16, 2024
1 parent 9b203db commit 40b6c0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iosx/src/flowmgr/AVSVideoView_Metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ - (id)init

NSLog(@"AVSVideoView-init: source compiled successfully\n");

self.autoresizingMask =
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

#if TARGET_OS_IPHONE
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(applicationWillResignActive:)
Expand Down Expand Up @@ -473,7 +476,7 @@ - (void)layoutSubviews
_metalLayer.drawableSize = CGSizeMake(self.bounds.size.width * scale,
self.bounds.size.height * scale);

_viewFrame = _metalLayer.drawableSize;
_viewFrame = self.bounds.size;
_forceRecalc = YES;
[_lock unlock];

Expand Down

0 comments on commit 40b6c0d

Please sign in to comment.