Remove some line breaks and fix ID -> Id.
This commit is contained in:
parent
d1aa76d22d
commit
c1c8aaee0f
3 changed files with 4 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
namespace Ryujinx.Common.GraphicsDriver.NVAPI
|
||||
{
|
||||
enum NvapiSettingID : uint
|
||||
enum NvapiSettingId : uint
|
||||
{
|
||||
OglThreadControlId = 0x20C1221E,
|
||||
OglCplPreferDxPresentId = 0x20D690F8,
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Ryujinx.Common.GraphicsDriver.NVAPI
|
|||
[FieldOffset(0x4)]
|
||||
public NvapiUnicodeString SettingName;
|
||||
[FieldOffset(0x1004)]
|
||||
public NvapiSettingID SettingId;
|
||||
public NvapiSettingId SettingId;
|
||||
[FieldOffset(0x1008)]
|
||||
public NvdrsSettingType SettingType;
|
||||
[FieldOffset(0x100C)]
|
||||
|
|
|
@ -139,7 +139,7 @@ namespace Ryujinx.Common.GraphicsDriver
|
|||
NvdrsSetting setting = new()
|
||||
{
|
||||
Version = MakeVersion<NvdrsSetting>(1),
|
||||
SettingId = NvapiSettingID.OglThreadControlId,
|
||||
SettingId = NvapiSettingId.OglThreadControlId,
|
||||
SettingType = NvdrsSettingType.NvdrsDwordType,
|
||||
SettingLocation = NvdrsSettingLocation.NvdrsCurrentProfileLocation,
|
||||
IsCurrentPredefined = 0,
|
||||
|
@ -149,7 +149,6 @@ namespace Ryujinx.Common.GraphicsDriver
|
|||
};
|
||||
|
||||
Check(NvAPI_DRS_SetSetting(_handle, _profileHandle, ref setting));
|
||||
|
||||
Check(NvAPI_DRS_SaveSettings(_handle));
|
||||
|
||||
NvAPI_DRS_DestroySession(_handle);
|
||||
|
@ -166,7 +165,7 @@ namespace Ryujinx.Common.GraphicsDriver
|
|||
NvdrsSetting setting = new()
|
||||
{
|
||||
Version = MakeVersion<NvdrsSetting>(1),
|
||||
SettingId = NvapiSettingID.OglCplPreferDxPresentId,
|
||||
SettingId = NvapiSettingId.OglCplPreferDxPresentId,
|
||||
SettingType = NvdrsSettingType.NvdrsDwordType,
|
||||
SettingLocation = NvdrsSettingLocation.NvdrsCurrentProfileLocation,
|
||||
IsCurrentPredefined = 0,
|
||||
|
@ -176,7 +175,6 @@ namespace Ryujinx.Common.GraphicsDriver
|
|||
};
|
||||
|
||||
Check(NvAPI_DRS_SetSetting(_handle, _profileHandle, ref setting));
|
||||
|
||||
Check(NvAPI_DRS_SaveSettings(_handle));
|
||||
|
||||
NvAPI_DRS_DestroySession(_handle);
|
||||
|
|
Loading…
Reference in a new issue