mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
42 lines
No EOL
990 B
C#
42 lines
No EOL
990 B
C#
using Mesen.Interop;
|
|
using Mesen.Utilities;
|
|
using Mesen.ViewModels;
|
|
using ReactiveUI;
|
|
using ReactiveUI.Fody.Helpers;
|
|
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 class OverscanConfig : BaseConfig<OverscanConfig>
|
|
{
|
|
[Reactive][MinMax(0, 100)] public UInt32 Left { get; set; } = 0;
|
|
[Reactive][MinMax(0, 100)] public UInt32 Right { get; set; } = 0;
|
|
[Reactive][MinMax(0, 95)] public UInt32 Top { get; set; } = 0;
|
|
[Reactive][MinMax(0, 95)] public 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;
|
|
}
|
|
} |