summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-12-24 09:02:43 +0100
committerDamiano Galassi <[email protected]>2016-12-24 09:02:43 +0100
commit52a2c5e91d53ebbcf387ccbef75f59bd32c8afba (patch)
tree159d581ea2e57e30d64269e2cf14f5f1da3de4cd /macosx/HBPreviewController.m
parentd5eae7718acf2f29430e550fb1791317fb0d7b65 (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.m2
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];