2014-02-03 05:27:59 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
using BizHawk.Emulation.Common;
|
|
|
|
|
using BizHawk.Client.Common;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.Client.EmuHawk.config
|
|
|
|
|
{
|
|
|
|
|
public partial class DisplayConfigLite : Form
|
|
|
|
|
{
|
|
|
|
|
public DisplayConfigLite()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
rbNone.Checked = Global.Config.TargetDisplayFilter == 0;
|
|
|
|
|
rbHq2x.Checked = Global.Config.TargetDisplayFilter == 1;
|
|
|
|
|
rbScanlines.Checked = Global.Config.TargetDisplayFilter == 2;
|
|
|
|
|
checkBilinearFilter.Checked = Global.Config.DispBlurry;
|
2014-02-03 07:01:31 +00:00
|
|
|
|
tbScanlineIntensity.Value = Global.Config.TargetScanlineFilterIntensity;
|
2014-02-03 05:27:59 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void btnOk_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if(rbNone.Checked)
|
|
|
|
|
Global.Config.TargetDisplayFilter = 0;
|
|
|
|
|
if (rbHq2x.Checked)
|
|
|
|
|
Global.Config.TargetDisplayFilter = 1;
|
|
|
|
|
if (rbScanlines.Checked)
|
|
|
|
|
Global.Config.TargetDisplayFilter = 2;
|
|
|
|
|
|
|
|
|
|
Global.Config.DispBlurry = checkBilinearFilter.Checked;
|
2014-02-03 07:01:31 +00:00
|
|
|
|
Global.Config.TargetScanlineFilterIntensity = tbScanlineIntensity.Value;
|
2014-02-03 05:27:59 +00:00
|
|
|
|
|
|
|
|
|
DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
|
|
|
Close();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|