mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -10:00
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
42 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|