X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8482f24cfc00645607f8526fde38d39e0dcaa63..f820e98de02ee9c5d34f28372a2324d9b2909f6c:/contrib/src/mmedia/vidxanm.cpp diff --git a/contrib/src/mmedia/vidxanm.cpp b/contrib/src/mmedia/vidxanm.cpp index 4700a23803..b0d061854d 100644 --- a/contrib/src/mmedia/vidxanm.cpp +++ b/contrib/src/mmedia/vidxanm.cpp @@ -12,14 +12,16 @@ #pragma implementation "vidxanm.h" #endif -#include +#include "wx/wxprec.h" #ifndef WX_PRECOMP #include #endif +#ifdef __WXGTK__ // Pizza ! #include +#endif #include #include @@ -370,7 +372,7 @@ bool wxVideoXANIM::CollectInfo() wxInputStream *infoStream = xanimProcess->GetInputStream(); wxString totalOutput; - while (infoStream->LastError() == wxSTREAM_NOERROR) { + while (infoStream->GetLastError() == wxSTREAM_NO_ERROR) { char line[100]; infoStream->Read(line, sizeof(line)-1); @@ -466,8 +468,7 @@ bool wxVideoXANIM::RestartXANIM() GtkPizza *pizza = GTK_PIZZA( m_video_output->m_wxwindow ); GdkWindow *window = pizza->bin_window; - m_internal->xanim_window = - ((GdkWindowPrivate *)window)->xwindow; + m_internal->xanim_window = GDK_WINDOW_XWINDOW(window); #endif // Get the XANIM atom m_internal->xanim_atom = XInternAtom(m_internal->xanim_dpy, @@ -503,7 +504,8 @@ bool wxVideoXANIM::RestartXANIM() m_video_output->SetSize(vibrato_size); vibrato_size.SetWidth(vibrato_size.GetWidth()-1); m_video_output->SetSize(vibrato_size); - // Very useful ! Actually it sends a SETSIZE event to XAnim + // Very useful ! Actually it "should" sends a SETSIZE event to XAnim + // FIXME: This event is not sent !! m_paused = FALSE;