X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f815011ffb2a69481a91a20b2010fa0181a8fca5..dc8a1aa53d9c71820d683aefe7ea04d7e480f63b:/contrib/src/mmedia/vidbase.cpp?ds=sidebyside diff --git a/contrib/src/mmedia/vidbase.cpp b/contrib/src/mmedia/vidbase.cpp index dde026ab7d..00ff2dcc95 100644 --- a/contrib/src/mmedia/vidbase.cpp +++ b/contrib/src/mmedia/vidbase.cpp @@ -7,16 +7,13 @@ // Copyright: (C) 1997, 1998, Guilhem Lavaux // License: wxWindows license //////////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "vidbase.h" -#endif #include "wx/wxprec.h" #ifndef WX_PRECOMP -#include -#include -#include +#include "wx/stream.h" +#include "wx/wfstream.h" +#include "wx/intl.h" #endif #include "wx/mmedia/vidbase.h" @@ -33,12 +30,12 @@ wxVideoBaseDriver::wxVideoBaseDriver() m_video_output = NULL; } -wxVideoBaseDriver::wxVideoBaseDriver(wxInputStream& str) +wxVideoBaseDriver::wxVideoBaseDriver(wxInputStream& WXUNUSED(str)) { m_video_output = NULL; } -wxVideoBaseDriver::wxVideoBaseDriver(const wxString& filename) +wxVideoBaseDriver::wxVideoBaseDriver(const wxString& WXUNUSED(filename)) { m_video_output = NULL; } @@ -50,7 +47,7 @@ wxVideoBaseDriver::~wxVideoBaseDriver() bool wxVideoBaseDriver::AttachOutput(wxWindow& output) { m_video_output = &output; - return TRUE; + return true; } void wxVideoBaseDriver::DetachOutput() @@ -62,11 +59,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();