, _display_frame_x (0)
, _got_frame (false)
{
+#ifndef __WXOSX__
_panel->SetDoubleBuffered (true);
+#endif
+
#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
_panel->SetBackgroundStyle (wxBG_STYLE_PAINT);
#endif
if (_decoders.video == 0) {
break;
}
+ _decoders.video->set_subtitle_stream (_film->subtitle_stream());
_decoders.video->Video.connect (bind (&FilmViewer::process_video, this, _1, _2, _3, _4));
_decoders.video->OutputChanged.connect (boost::bind (&FilmViewer::decoder_changed, this));
- _decoders.video->set_subtitle_stream (_film->subtitle_stream());
calculate_sizes ();
get_frame ();
_panel->Refresh ();
return;
}
- _panel->Refresh ();
- _panel->Update ();
-
get_frame ();
if (_film->length()) {
_slider->SetValue (new_slider_position);
}
}
+
+ _panel->Refresh ();
+ _panel->Update ();
}
Size const cropped_size = _film->cropped_size (_film->size ());
- Rect tx = subtitle_transformed_area (
+ dvdomatic::Rect tx = subtitle_transformed_area (
float (_film_size.width) / cropped_size.width,
float (_film_size.height) / cropped_size.height,
_raw_sub->area(), _film->subtitle_offset(), _film->subtitle_scale()
_got_frame = true;
double const fps = _decoders.video->frames_per_second ();
- _frame->SetLabel (wxString::Format (wxT("%d"), int (rint (t * fps))));
+ /* Count frame number from 1 ... not sure if this is the best idea */
+ _frame->SetLabel (wxString::Format (wxT("%d"), int (rint (t * fps)) + 1));
double w = t;
int const h = (w / 3600);
_display_frame.reset ();
return;
}
-
+
try {
_got_frame = false;
while (!_got_frame) {