mirror of
https://github.com/opencv/opencv.git
synced 2026-09-19 15:23:23 -05:00
Merge pull request #2903 from mmaraya:2.4
This commit is contained in:
@@ -253,7 +253,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user