]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/mmedia/vidbase.cpp
corrected version number extraction
[wxWidgets.git] / contrib / src / mmedia / vidbase.cpp
index a0fc70cb1e13e3ee51ce21c0abcf2716beeb009e..a62c2a90cbc26c535f85d22b92eaf92e2929c872 100644 (file)
@@ -50,7 +50,7 @@ wxVideoBaseDriver::~wxVideoBaseDriver()
 bool wxVideoBaseDriver::AttachOutput(wxWindow& output)
 {
   m_video_output = &output;
-  return TRUE;
+  return true;
 }
 
 void wxVideoBaseDriver::DetachOutput()
@@ -62,11 +62,11 @@ void wxVideoBaseDriver::DetachOutput()
 
 wxFrame *wxVideoCreateFrame(wxVideoBaseDriver *vid_drv)
 {
-  wxFrame *frame = new wxFrame(NULL, -1, _("Video Output"), wxDefaultPosition, wxSize(100, 100));
-  wxWindow *vid_out = new wxWindow(frame, -1, wxPoint(0, 0), wxSize(300, 300));
+  wxFrame *frame = new wxFrame(NULL, wxID_ANY, _("Video Output"), wxDefaultPosition, wxSize(100, 100));
+  wxWindow *vid_out = new wxWindow(frame, wxID_ANY, wxPoint(0, 0), wxSize(300, 300));
 
   frame->Layout();
-  frame->Show(TRUE);
+  frame->Show(true);
 
   vid_drv->AttachOutput(*vid_out);
   vid_drv->Play();