private void cboHighlightType_SelectedIndexChanged(object sender, EventArgs e) { this._highlightType = (CdlHighlightType)this.cboHighlightType.SelectedIndex; ConfigManager.Config.DebugInfo.ChrViewerHighlightType = this._highlightType; ConfigManager.ApplyChanges(); this.GetData(); this.RefreshViewer(); }
public static byte[] DebugGetChrBank(int bankIndex, int palette, bool largeSprites, CdlHighlightType highlightType) { byte[] frameData = new byte[128 * 128 * 4]; GCHandle hFrameData = GCHandle.Alloc(frameData, GCHandleType.Pinned); try { InteropEmu.DebugGetChrBankWrapper((UInt32)bankIndex, hFrameData.AddrOfPinnedObject(), (Byte)palette, largeSprites, highlightType); } finally { hFrameData.Free(); } return(frameData); }
private void cboHighlightType_SelectedIndexChanged(object sender, EventArgs e) { this._highlightType = (CdlHighlightType)this.cboHighlightType.SelectedIndex; this.GetData(); this.RefreshViewer(); }
[DllImport(DLLPath, EntryPoint = "DebugGetChrBank")] private static extern void DebugGetChrBankWrapper(UInt32 bankIndex, IntPtr frameBuffer, Byte palette, [MarshalAs(UnmanagedType.I1)] bool largeSprites, CdlHighlightType highlightType);