summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-02-20 15:51:17 +0000
committerdynaflash <[email protected]>2010-02-20 15:51:17 +0000
commite5d5bc94b2217a9eb65857d83d31138d126947e4 (patch)
tree4c77b68cd4b95170f27cf75c152085dc4777007f /macosx
parent5ac461efefc4220228002fb6d9cc8ecbaf9e8029 (diff)
MacGui: In preview only set the origin of the hud control panel for the preview window when setting the title, after that the origin will animate much smoother along with the window.
- Avoids the nasty resetting of the hud controller when the preview window resizes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3128 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreviewController.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m
index 71634fcfe..c6421d09c 100644
--- a/macosx/HBPreviewController.m
+++ b/macosx/HBPreviewController.m
@@ -210,6 +210,12 @@
MaxOutputWidth = title->width - job->crop[2] - job->crop[3];
MaxOutputHeight = title->height - job->crop[0] - job->crop[1];
[self SettingsChanged: nil];
+
+ /* set the top of the hud controller boxes centered vertically with the origin of our window */
+ NSPoint hudControlBoxOrigin = [fPictureControlBox frame].origin;
+ hudControlBoxOrigin.y = ([[self window] frame].size.height / 2) - [fPictureControlBox frame].size.height;
+ [fPictureControlBox setFrameOrigin:hudControlBoxOrigin];
+ [fEncodingControlBox setFrameOrigin:hudControlBoxOrigin];
}
@@ -1189,11 +1195,6 @@
[fPictureView setFrameOrigin:origin];
- /* set the top of the hud controller boxes centered vertically with the origin of our window */
- NSPoint hudControlBoxOrigin = [fPictureControlBox frame].origin;
- hudControlBoxOrigin.y = ([[self window] frame].size.height / 2) - [fPictureControlBox frame].size.height;
- [fPictureControlBox setFrameOrigin:hudControlBoxOrigin];
- [fEncodingControlBox setFrameOrigin:hudControlBoxOrigin];
}