X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fc81cbc050c7c69cb04eeef508a8a237a4935c5..d45318b8b6857ab6159b37c2f3ddce6a5f68be28:/src/cocoa/mediactrl.mm diff --git a/src/cocoa/mediactrl.mm b/src/cocoa/mediactrl.mm index 0d09279525..bbbd81a75c 100644 --- a/src/cocoa/mediactrl.mm +++ b/src/cocoa/mediactrl.mm @@ -225,11 +225,11 @@ bool wxQTMediaBackend::CreateControl(wxControl* inctrl, wxWindow* parent, wxMediaCtrl* ctrl = (wxMediaCtrl*) inctrl; //Create the control base - wxASSERT(ctrl->CreateBase(parent,wid,pos,size,style, validator, size)); + wxASSERT(ctrl->CreateBase(parent,wid,pos,size,style, validator, name)); //Create the NSMovieView ctrl->SetNSView(NULL); - NSView* theView = [[NSMovieView alloc] initWithFrame: ctrl->MakeDefaultNSRect(size)]; + NSMovieView* theView = [[NSMovieView alloc] initWithFrame: ctrl->MakeDefaultNSRect(size)]; ctrl->SetNSView(theView); [theView release]; @@ -239,7 +239,8 @@ bool wxQTMediaBackend::CreateControl(wxControl* inctrl, wxWindow* parent, parent->CocoaAddChild(ctrl); ctrl->SetInitialFrameRect(pos,size); } - + + [theView showController:false adjustingSize:true]; m_movieview = theView; m_ctrl = ctrl; return true; @@ -499,8 +500,3 @@ void wxQTMediaBackend::Move(int x, int y, int w, int h) FORCE_LINK_ME(basewxmediabackends); #endif //wxUSE_MEDIACTRL - - - - -