Skip to content

Commit

Permalink
Default to scRGB HDR and 16-bpc SDR by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Oct 23, 2024
1 parent 085903a commit a9b392c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions include/utility/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,10 @@ struct SKIF_RegistrySettings {
int iLibrarySort = 0; // 0 = Name, 1 = Uses (frequently), 2 = Last Used (recently)
int iProcessSort = 0; // 0 = Status, 1 = PID, 2 = Arch, 3 = Admin, 4 = Name
int iProcessRefreshInterval = 2; // 0 = Paused, 1 = Slow (5s), 2 = Normal (1s), [3 = High (0.5s; not implemented)]
int iSDRMode = 0; // 0 = 8 bpc, 1 = 10 bpc, 2 = 16 bpc
int iHDRMode = 1; // 0 = Disabled, 1 = HDR10 (10 bpc), 2 = scRGB (16 bpc)
int iSDRMode = 2; // 0 = 8 bpc, 1 = 10 bpc, 2 = 16 bpc
int iHDRMode = 2; // 0 = Disabled, 1 = HDR10 (Invalid!), 2 = scRGB (16 bpc)
int iHDRBrightness = 203; // HDR reference white for BT.2408
int iUIMode = 1; // 0 = Safe Mode (BitBlt), 1 = Normal, 2 = VRR Compatibility
int iUIMode = 2; // 0 = Safe Mode (BitBlt), 1 = Normal, 2 = VRR Compatibility
int iDiagnostics = 1; // 0 = None, 1 = Normal, 2 = Enhanced (not actually used yet)
int iValvePlug = 1; // 0 = Disabled, 1 = Enabled (default)
int iUIWidth = 0; // 0 = None (default)
Expand All @@ -565,15 +565,15 @@ struct SKIF_RegistrySettings {
bool bLibraryXbox = true;
bool bLibraryCustom = true;

bool bMiniMode = false;
bool bMiniMode = false;
bool bHorizonMode = false; // 1038 x 325 -- covers are 186.67 x 280
//bool bHorizonModeAuto = true;

bool bFirstLaunch = false;
bool bAllowMultipleInstances = false;
bool bAllowBackgroundService = false;
bool bOpenAtCursorPosition = false;
bool bOpenInMiniMode = false;
bool bOpenInMiniMode = false;
bool bStopOnInjection = false;
bool bCloseToTray = false;
bool bLowBandwidthMode = false;
Expand Down
2 changes: 1 addition & 1 deletion src/SKIF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4230,7 +4230,7 @@ bool CreateDeviceD3D (HWND hWnd)
if (_registry.iHDRMode == 1)
_registry.iHDRMode = 2;

if (_registry.iHDRMode == 2)
if (_registry.iHDRMode == 2)
dxgi_format = DXGI_FORMAT_R16G16B16A16_FLOAT; // scRGB (16 bpc)
else
dxgi_format = DXGI_FORMAT_R10G10B10A2_UNORM; // HDR10 (10 bpc)
Expand Down
2 changes: 1 addition & 1 deletion src/stores/Steam/vdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ skValveDataFile::getAppInfo ( uint32_t appid, std::vector <std::pair < std::stri
pIter->getRootSection (&app_desc.size);

section.parse (app_desc);
#define _WRITE_APPID_INI
//#define _WRITE_APPID_INI
#ifdef _WRITE_APPID_INI
FILE* fTest =
fopen ("appid.ini", "w");
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define SKIF_MAJOR 1
#define SKIF_MINOR 1
#define SKIF_BUILD 7
#define SKIF_REV 0
#define SKIF_REV 1


#define _A2(a) #a
Expand Down

0 comments on commit a9b392c

Please sign in to comment.