private void buttonRefresh_Click(object sender, EventArgs e) { if (cbscanline == -2 && Gb != null) { Gb.SetScanlineCallback(ScanlineCallback, -2); } }
/// <summary> /// put me in ToolsBefore /// </summary> public void UpdateValues() { if (!IsHandleCreated || IsDisposed) { return; } else if (Gb != null) { if (!Visible) { if (cbscanline_emu != -2) { cbscanline_emu = -2; Gb.SetScanlineCallback(null, 0); } } else { if (cbscanline != cbscanline_emu) { cbscanline_emu = cbscanline; if (cbscanline == -2) { Gb.SetScanlineCallback(null, 0); } else { Gb.SetScanlineCallback(ScanlineCallback, cbscanline); } } } } }
private void GBGPUView_FormClosed(object sender, FormClosedEventArgs e) { if (Gb != null) { Gb.SetScanlineCallback(null, 0); } }