summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-18 20:16:53 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-18 20:16:53 +0000
commit039a55081427b1ff0026cd6b9ca787526d37ef92 (patch)
treee2b4d8279a13eef085d13c68362dcff512038d1c /src
parent2587f29e54bac098296dbef6557b9bf9bcdc2406 (diff)
Don't scale preview too small, or the software scaler complains.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 891d1671b..4e39480b6 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -179,7 +179,7 @@ FilmViewer::paint_panel (wxPaintEvent& ev)
{
wxPaintDC dc (_panel);
- if (!_display_frame || !_film) {
+ if (!_display_frame || !_film || !_out_width || !_out_height) {
dc.Clear ();
return;
}
@@ -212,7 +212,6 @@ void
FilmViewer::seek_and_update (SourceFrame f)
{
if (_decoders.video->seek (f)) {
- cout << "could not s&u to " << f << "\n";
return;
}
@@ -246,7 +245,7 @@ FilmViewer::update_from_raw ()
void
FilmViewer::raw_to_display ()
{
- if (!_raw_frame || !_out_width || !_out_height || !_film) {
+ if (!_raw_frame || _out_width < 64 || _out_height < 64 || !_film) {
return;
}