From 607d3b54ce08ba04bc032b01dd84cb3db50c63c7 Mon Sep 17 00:00:00 2001 From: Mike Maraya Date: Fri, 27 Jun 2014 23:26:09 -0400 Subject: [PATCH] Fixes resizeWindow() on OS X (Bug #3200) --- modules/highgui/src/window_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/window_cocoa.mm b/modules/highgui/src/window_cocoa.mm index b9efe35bb0..56baded392 100644 --- a/modules/highgui/src/window_cocoa.mm +++ b/modules/highgui/src/window_cocoa.mm @@ -255,7 +255,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;