Fix multi monitor setup with different DPI values
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
- Fix keyboard layout change not working.
|
- Fix keyboard layout change not working.
|
||||||
|
- Fix multi monitor setup with different DPI values.
|
||||||
|
|
||||||
|
|
||||||
5.8.0.0 Beta (2022-04-02)
|
5.8.0.0 Beta (2022-04-02)
|
||||||
|
|
||||||
|
|||||||
@@ -1315,17 +1315,15 @@ KP1 script-binding delete_current_file/confirm
|
|||||||
|
|
||||||
public void ShowLogo()
|
public void ShowLogo()
|
||||||
{
|
{
|
||||||
if (!App.ShowLogo || (MainForm.Instance == null || App.Settings.LogoCrash))
|
if (!App.ShowLogo || MainForm.Instance == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
bool december = DateTime.Now.Month == 12;
|
bool december = DateTime.Now.Month == 12;
|
||||||
|
|
||||||
Rectangle cr = MainForm.Instance.ClientRectangle;
|
Rectangle cr = MainForm.Instance.ClientRectangle;
|
||||||
int len = Convert.ToInt32(cr.Height / (december ? 4.5 : 5));
|
int len = Convert.ToInt32(cr.Height / (december ? 4.5 : 5));
|
||||||
|
|
||||||
if (len == 0)
|
if (len < 16 || cr.Height < 16)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
using (Bitmap bmp = new Bitmap(len, len))
|
using (Bitmap bmp = new Bitmap(len, len))
|
||||||
@@ -1346,11 +1344,6 @@ KP1 script-binding delete_current_file/confirm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
|
||||||
{
|
|
||||||
App.Settings.LogoCrash = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
string GetLanguage(string id)
|
string GetLanguage(string id)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ namespace mpvnet
|
|||||||
public class AppSettings
|
public class AppSettings
|
||||||
{
|
{
|
||||||
public bool InputDefaultBindingsFixApplied;
|
public bool InputDefaultBindingsFixApplied;
|
||||||
public bool LogoCrash;
|
|
||||||
public bool ShowMenuFixApplied;
|
public bool ShowMenuFixApplied;
|
||||||
public int Volume = 70;
|
public int Volume = 70;
|
||||||
public List<string> RecentFiles = new List<string>();
|
public List<string> RecentFiles = new List<string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user