1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

VideoPlayer: Create submenu to set sizing mode

Also add icon to the sizing mode cycling button.
This commit is contained in:
timre13 2023-03-03 18:10:52 +01:00 committed by Sam Atkins
parent b33b950e45
commit eef07a411b
5 changed files with 74 additions and 6 deletions

View file

@ -31,6 +31,15 @@ void VideoFrameWidget::set_bitmap(Gfx::Bitmap const* bitmap)
update();
}
void VideoFrameWidget::set_sizing_mode(VideoSizingMode value)
{
if (value == m_sizing_mode)
return;
m_sizing_mode = value;
update();
}
void VideoFrameWidget::set_auto_resize(bool value)
{
m_auto_resize = value;