From 46d2066439531f530ddff7fa3e4bb7a2b003f704 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Mon, 24 Nov 2008 19:47:46 +0000 Subject: [PATCH] MacGui: Fix live preview window so that changes in the preview window are reflected in the main window in real time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1952 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/PictureController.mm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 940bdb2fe..6888e55f3 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -262,6 +262,7 @@ are maintained across different sources */ scale * 100.0]; [fInfoField setStringValue: [[fInfoField stringValue] stringByAppendingString:scaleString]]; } + } - (IBAction) previewDurationPopUpChanged: (id) sender @@ -463,7 +464,8 @@ are maintained across different sources */ no human can see any meaningful detail below that */ if (job->width >= 64 && job->height >= 64) { - // Purge the existing picture previews so they get recreated the next time + + // Purge the existing picture previews so they get recreated the next time // they are needed. [self purgeImageCache]; /* We actually call displayPreview now from pictureSliderChanged which keeps @@ -473,7 +475,12 @@ are maintained across different sources */ [self pictureSliderChanged:nil]; } - + + if (sender != nil) + { + if ([delegate respondsToSelector:@selector(pictureSettingsDidChange)]) + [delegate pictureSettingsDidChange]; + } } -- 2.40.0