mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Don't resize video in fullscreen (only mpv) - thx Alex :)
This commit is contained in:
parent
4cda9dcba7
commit
92b04ff61f
@ -647,11 +647,20 @@ namespace Nikse.SubtitleEdit.Controls
|
|||||||
{
|
{
|
||||||
_panelControls.Visible = true;
|
_panelControls.Visible = true;
|
||||||
_panelControls.BringToFront();
|
_panelControls.BringToFront();
|
||||||
_panelSubtitle.Height -= ControlsHeight;
|
|
||||||
|
|
||||||
if (PanelPlayer.Dock == DockStyle.Fill)
|
var useCompleteFullscreen = VideoPlayer is LibMpvDynamic && Configuration.Settings.General.MpvHandlesPreviewText;
|
||||||
|
if (useCompleteFullscreen && PanelPlayer.Dock == DockStyle.Fill)
|
||||||
{
|
{
|
||||||
PanelPlayer.Dock = DockStyle.None;
|
// keep fullscreen
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_panelSubtitle.Height -= ControlsHeight;
|
||||||
|
|
||||||
|
if (PanelPlayer.Dock == DockStyle.Fill)
|
||||||
|
{
|
||||||
|
PanelPlayer.Dock = DockStyle.None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1272,6 +1281,16 @@ namespace Nikse.SubtitleEdit.Controls
|
|||||||
_pictureBoxFullscreen.Visible = false;
|
_pictureBoxFullscreen.Visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SetFullFixed()
|
||||||
|
{
|
||||||
|
var useCompleteFullscreen = VideoPlayer is LibMpvDynamic && Configuration.Settings.General.MpvHandlesPreviewText;
|
||||||
|
if (useCompleteFullscreen)
|
||||||
|
{
|
||||||
|
PanelPlayer.Dock = DockStyle.Fill;
|
||||||
|
_panelControls.BringToFront();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void ShowFullScreenControls()
|
public void ShowFullScreenControls()
|
||||||
{
|
{
|
||||||
_pictureBoxFullscreen.Image = (Image)_resources.GetObject("pictureBoxNoFS.Image");
|
_pictureBoxFullscreen.Image = (Image)_resources.GetObject("pictureBoxNoFS.Image");
|
||||||
|
@ -19,7 +19,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
private readonly Keys _mainGeneralGoToPrevSubtitlePlayTranslate = UiUtil.GetKeys(Configuration.Settings.Shortcuts.GeneralGoToPrevSubtitlePlayTranslate);
|
private readonly Keys _mainGeneralGoToPrevSubtitlePlayTranslate = UiUtil.GetKeys(Configuration.Settings.Shortcuts.GeneralGoToPrevSubtitlePlayTranslate);
|
||||||
private bool _autoSized;
|
private bool _autoSized;
|
||||||
|
|
||||||
private Dictionary<DateTime, int> _mouseMoveDiff;
|
private readonly Dictionary<DateTime, int> _mouseMoveDiff;
|
||||||
private int _mouseLastX = -1;
|
private int _mouseLastX = -1;
|
||||||
private int _mouseLastY = -1;
|
private int _mouseLastY = -1;
|
||||||
|
|
||||||
@ -240,6 +240,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
_videoPlayerContainer.SetSubtitleFont();
|
_videoPlayerContainer.SetSubtitleFont();
|
||||||
_videoPlayerContainer.SubtitleText = string.Empty;
|
_videoPlayerContainer.SubtitleText = string.Empty;
|
||||||
_videoPlayerContainer.ShowFullScreenControls();
|
_videoPlayerContainer.ShowFullScreenControls();
|
||||||
|
_videoPlayerContainer.SetFullFixed();
|
||||||
timer1.Start();
|
timer1.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user