Skip to content
Snippets Groups Projects
Commit 7973c15b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

videoView: force redraw

If window closed when video running metal view redrawing will broke.
This patch force view redraw after setting a new frame.

Change-Id: If6f1266510061dd7b9d04e95cacf58395fdb4220
parent c838e532
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,6 @@ typedef NS_ENUM(NSInteger, ViewState) { ...@@ -178,7 +178,6 @@ typedef NS_ENUM(NSInteger, ViewState) {
[chooseAccountVC updateWithDelegate: self andModel:self.accountModel]; [chooseAccountVC updateWithDelegate: self andModel:self.accountModel];
settingsVC = [[AccountSettingsVC alloc] initWithNibName:@"AccountSettings" bundle:nil accountmodel:self.accountModel]; settingsVC = [[AccountSettingsVC alloc] initWithNibName:@"AccountSettings" bundle:nil accountmodel:self.accountModel];
[callView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; [callView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[currentCallVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[conversationVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; [[conversationVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[settingsVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; [[settingsVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
......
...@@ -215,6 +215,7 @@ bool frameDisplayed = false; ...@@ -215,6 +215,7 @@ bool frameDisplayed = false;
[commandEncoder endEncoding]; [commandEncoder endEncoding];
[commandBuffer presentDrawable:drawable]; [commandBuffer presentDrawable:drawable];
[commandBuffer commit]; [commandBuffer commit];
[self draw];
} }
-(simd::float4x4) getScalingMatrix:(CGFloat) ratio axis:(char) axis { -(simd::float4x4) getScalingMatrix:(CGFloat) ratio axis:(char) axis {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment