Merge pull request #2903 from mmaraya:2.4

This commit is contained in:
Roman Donchenko 2014-07-11 14:15:59 +00:00
commit d262b04d99

View File

@ -253,7 +253,7 @@ CV_IMPL void cvResizeWindow( const char* name, int width, int height)
//cout << "cvResizeWindow" << endl;
NSAutoreleasePool* localpool = [[NSAutoreleasePool alloc] init];
CVWindow *window = cvGetWindow(name);
if(window) {
if(window && ![window autosize]) {
NSRect frame = [window frame];
frame.size.width = width;
frame.size.height = height;