Files
MesenCE/UI/Config/OverscanConfig.cs
SourMesen 40335ce735 UI: Update to Avalonia 12, .NET 10 and replace ReactiveUI with MVVM community toolkit (#142)
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
2026-07-03 16:04:42 +09:00

42 lines
1.0 KiB
C#

using CommunityToolkit.Mvvm.ComponentModel;
using Mesen.Interop;
using Mesen.Utilities;
using Mesen.ViewModels;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
namespace Mesen.Config
{
public partial class OverscanConfig : BaseConfig<OverscanConfig>
{
[ObservableProperty][MinMax(0, 100)] public partial UInt32 Left { get; set; } = 0;
[ObservableProperty][MinMax(0, 100)] public partial UInt32 Right { get; set; } = 0;
[ObservableProperty][MinMax(0, 95)] public partial UInt32 Top { get; set; } = 0;
[ObservableProperty][MinMax(0, 95)] public partial UInt32 Bottom { get; set; } = 0;
public InteropOverscanDimensions ToInterop()
{
return new InteropOverscanDimensions() {
Left = Left,
Right = Right,
Top = Top,
Bottom = Bottom,
};
}
}
public struct InteropOverscanDimensions
{
public UInt32 Left;
public UInt32 Right;
public UInt32 Top;
public UInt32 Bottom;
}
}