projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Try to fix problems with view of padded stuff.
[dcpomatic.git]
/
src
/
wx
/
film_viewer.cc
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index 4dca5cad85223f17e26ea1cc541fa76c0c2ea76b..18ddf1eb2cb585c351ec075de2dffd720abeb43e 100644
(file)
--- a/
src/wx/film_viewer.cc
+++ b/
src/wx/film_viewer.cc
@@
-222,20
+222,20
@@
FilmViewer::paint_panel (wxPaintEvent &)
dc.DrawBitmap (sub_bitmap, _display_sub_position.x, _display_sub_position.y);
}
dc.DrawBitmap (sub_bitmap, _display_sub_position.x, _display_sub_position.y);
}
- if (_
film
_size.width < _panel_size.width) {
+ if (_
out
_size.width < _panel_size.width) {
wxPen p (GetBackgroundColour ());
wxBrush b (GetBackgroundColour ());
dc.SetPen (p);
dc.SetBrush (b);
wxPen p (GetBackgroundColour ());
wxBrush b (GetBackgroundColour ());
dc.SetPen (p);
dc.SetBrush (b);
- dc.DrawRectangle (_
film_size.width, 0, _panel_size.width - _film
_size.width, _panel_size.height);
+ dc.DrawRectangle (_
out_size.width, 0, _panel_size.width - _out
_size.width, _panel_size.height);
}
}
- if (_
film
_size.height < _panel_size.height) {
+ if (_
out
_size.height < _panel_size.height) {
wxPen p (GetBackgroundColour ());
wxBrush b (GetBackgroundColour ());
dc.SetPen (p);
dc.SetBrush (b);
wxPen p (GetBackgroundColour ());
wxBrush b (GetBackgroundColour ());
dc.SetPen (p);
dc.SetBrush (b);
- dc.DrawRectangle (0, _
film_size.height, _panel_size.width, _panel_size.height - _film
_size.height);
+ dc.DrawRectangle (0, _
out_size.height, _panel_size.width, _panel_size.height - _out
_size.height);
}
}
}
}