dc.SetLogicalScale (scale, scale);
auto const panel_size = _panel->GetSize ();
+ auto pad = pad_colour();
dcp::Size out_size;
if (!_image) {
+ wxBrush b (pad);
+ dc.SetBackground (b);
dc.Clear ();
} else {
DCPOMATIC_ASSERT (_image->alignment() == Image::Alignment::COMPACT);
dc.DrawBitmap (frame_bitmap, 0, max(0, (panel_size.GetHeight() - out_size.height) / 2));
}
- auto pad = pad_colour();
-
if (out_size.width < panel_size.GetWidth()) {
wxPen p (pad);
wxBrush b (pad);
dc.DrawRectangle (subs->x * out_size.width, subs->y * out_size.height, subs->width * out_size.width, subs->height * out_size.height);
}
+ if (_viewer->crop_guess()) {
+ wxPen p (crop_guess_colour(), 2);
+ dc.SetPen (p);
+ dc.SetBrush (*wxTRANSPARENT_BRUSH);
+ auto const crop_guess = _viewer->crop_guess().get();
+ dc.DrawRectangle (
+ _inter_position.x + _inter_size.width * crop_guess.x,
+ _inter_position.y + _inter_size.height * crop_guess.y,
+ _inter_size.width * crop_guess.width,
+ _inter_size.height * crop_guess.height
+ );
+ }
+
_state_timer.unset();
}