public PetSCIITable(StudioCore Core) { this.Core = Core; DocumentInfo.UndoManager.MainForm = Core.MainForm; InitializeComponent(); GR.Image.DPIHandler.ResizeControlsForDPI(this); _DefaultFont = new System.Drawing.Font(listPETSCII.Font.FontFamily, listPETSCII.Font.Size * 96.0f / DPIHandler.DPIY, listPETSCII.Font.Style); listPETSCII.ItemWidth = (int)(80 * GR.Image.DPIHandler.DPIX / 96.0f); listPETSCII.ItemHeight = (int)(40 * GR.Image.DPIHandler.DPIY / 96.0f); listPETSCII.SetDisplaySize(listPETSCII.ClientSize.Width, listPETSCII.ClientSize.Height); listPETSCII.DisplayPage.Create(120, 120, System.Drawing.Imaging.PixelFormat.Format24bppRgb); listPETSCII.PixelFormat = System.Drawing.Imaging.PixelFormat.Format24bppRgb; listPETSCII.Font = new System.Drawing.Font(Core.MainForm.m_FontC64.Families[0], Core.Settings.SourceFontSize, Core.Settings.SourceFontStyle); foreach (Types.C64Character character in Types.ConstantData.PetSCIIToChar.Values) { if (character.HasChar) { listPETSCII.Items.Add(CreateItem(character)); } } }
public PetSCIITable(StudioCore Core) { this.Core = Core; DocumentInfo.UndoManager.MainForm = Core.MainForm; InitializeComponent(); _DefaultFont = listPETSCII.Font; listPETSCII.ItemWidth = 80; listPETSCII.ItemHeight = 40; listPETSCII.SetDisplaySize(listPETSCII.ClientSize.Width, listPETSCII.ClientSize.Height); listPETSCII.DisplayPage.Create(120, 120, System.Drawing.Imaging.PixelFormat.Format24bppRgb); listPETSCII.PixelFormat = System.Drawing.Imaging.PixelFormat.Format24bppRgb; listPETSCII.Font = new System.Drawing.Font(Core.MainForm.m_FontC64.Families[0], Core.Settings.SourceFontSize); foreach (Types.C64Character character in Types.ConstantData.PetSCIIToChar.Values) { if (character.HasChar) { listPETSCII.Items.Add(CreateItem(character)); } } }