mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Minor fixes for Linux version
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@930 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
81b5dd4a3f
commit
ba6c1f7c6d
@ -469,7 +469,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
catch (Exception exception)
|
||||
{
|
||||
MessageBox.Show(exception.Message);
|
||||
font = new Font("Verdana", parameter.SubtitleFontSize);
|
||||
font = new Font(FontFamily.Families[0].Name, parameter.SubtitleFontSize);
|
||||
}
|
||||
var bmp = new Bitmap(400, 200);
|
||||
var g = Graphics.FromImage(bmp);
|
||||
@ -637,6 +637,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
if (string.Compare(x.Name, _subtitleFontName, true) == 0)
|
||||
comboBoxSubtitleFont.SelectedIndex = comboBoxSubtitleFont.Items.Count - 1;
|
||||
}
|
||||
if (comboBoxSubtitleFont.SelectedIndex == -1)
|
||||
comboBoxSubtitleFont.SelectedIndex = 0; // take first font if default font not found (e.g. linux)
|
||||
|
||||
subtitleListView1.Fill(_subtitle);
|
||||
subtitleListView1.SelectIndexAndEnsureVisible(0);
|
||||
|
@ -619,7 +619,7 @@ namespace Nikse.SubtitleEdit.Logic.BluRaySup
|
||||
ToolBox.SetWord(headerPCSStart, 2, h); // cropped height
|
||||
ToolBox.SetByte(headerPCSStart, 4, fpsId);
|
||||
ToolBox.SetWord(headerPCSStart, 5, pic.CompositionNumber);
|
||||
headerPCSStart[14] = (byte)(pic.IsForced ? (byte)0x40 : 0);
|
||||
headerPCSStart[14] = (byte)(pic.IsForced ? 0x40 : 0);
|
||||
ToolBox.SetWord(headerPCSStart, 15, pic.WindowXOffset);
|
||||
ToolBox.SetWord(headerPCSStart, 17, yOfs);
|
||||
for (int i = 0; i < headerPCSStart.Length; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user