diff options
author | Damiano Galassi <[email protected]> | 2016-12-24 09:02:43 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-12-24 09:02:43 +0100 |
commit | 52a2c5e91d53ebbcf387ccbef75f59bd32c8afba (patch) | |
tree | 159d581ea2e57e30d64269e2cf14f5f1da3de4cd /macosx/HBPreviewController.m | |
parent | d5eae7718acf2f29430e550fb1791317fb0d7b65 (diff) |
MacGui: fix preview HUD initial position if the window size is different than the default one.
Diffstat (limited to 'macosx/HBPreviewController.m')
-rw-r--r-- | macosx/HBPreviewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index e6515ce74..d85cdc4d9 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -91,7 +91,7 @@ [self.window.contentView addSubview:self.playerHUD.view]; // Relocate our hud origins. - CGPoint origin = CGPointMake(floor((MIN_WIDTH - _pictureHUD.view.bounds.size.width) / 2), MIN_HEIGHT / 10); + CGPoint origin = CGPointMake(floor((self.window.frame.size.width - _pictureHUD.view.bounds.size.width) / 2), MIN_HEIGHT / 10); [self.pictureHUD.view setFrameOrigin:origin]; [self.encodingHUD.view setFrameOrigin:origin]; |