- // Get the XANIM atom
- m_internal->xanim_atom = XInternAtom(m_internal->xanim_dpy,
- "XANIM_PROPERTY", False);
-
- // Build the command
- xanim_command.Printf(_T("xanim -Zr +Ze +Sr +f +W%d +f +q "
- "+Av70 %s %s"), m_internal->xanim_window,
- (xanim_chg_size) ? _T("") : _T(""),
- WXSTRINGCAST m_filename);
-
- // Execute it
- if (!wxExecute(xanim_command, FALSE, m_xanim_detector))
- return FALSE;
-
- // Wait for XAnim to be ready
- nitems = 0;
- m_xanim_started = TRUE;
- while (nitems == 0 && m_xanim_started) {
- ret = XGetWindowProperty(m_internal->xanim_dpy, m_internal->xanim_window,
- m_internal->xanim_atom,
- 0, 4, False, AnyPropertyType, &prop_type,
- &prop_format, &nitems, &extra,
- (unsigned char **)&prop);
- wxYield();
- }
-
- m_paused = FALSE;
-
- return TRUE;
+ // Get the XANIM atom
+ m_internal->xanim_atom = XInternAtom(m_internal->xanim_dpy,
+ "XANIM_PROPERTY", False);
+
+ // Build the command
+ xanim_command.Printf(wxT("xanim -Zr +Ze +Sr +f +W%d +f +q "
+ "+Av70 %s %s"), m_internal->xanim_window,
+ (xanim_chg_size) ? _T("") : _T(""),
+ WXSTRINGCAST m_filename);
+
+ // Execute it
+ if (!wxExecute(xanim_command, FALSE, m_xanim_detector))
+ return FALSE;
+
+ // Wait for XAnim to be ready
+ nitems = 0;
+ m_xanim_started = TRUE;
+ while (nitems == 0 && m_xanim_started) {
+ ret = XGetWindowProperty(m_internal->xanim_dpy, m_internal->xanim_window,
+ m_internal->xanim_atom,
+ 0, 4, False, AnyPropertyType, &prop_type,
+ &prop_format, &nitems, &extra,
+ (unsigned char **)&prop);
+ wxYield();
+ }
+
+ m_video_output->SetSize(m_video_output->GetSize());
+ // Very useful ! Actually it sends a SETSIZE event to XAnim
+
+ m_paused = FALSE;
+
+ return TRUE;