Fixes resizeWindow() on OS X (Bug #3200)

This commit is contained in:
Mike Maraya 2014-06-27 23:26:09 -04:00 committed by Dikay900
parent 7ca0557b40
commit 607d3b54ce

View File

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