iidxhook: allow forcing adapter and refresh rate in d3d9 based IIDX games

This commit is contained in:
Will Xyen
2020-01-10 10:44:21 -05:00
parent c24376b99c
commit c3d7b95c59
31 changed files with 212 additions and 6 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ static HRESULT STDCALL my_CreateDeviceEx(
pp->Windowed = TRUE;
pp->FullScreen_RefreshRateInHz = 0;
} else {
if (d3d9ex_force_refresh_rate != -1) {
if (d3d9ex_force_refresh_rate > 0) {
log_info("Forcing refresh rate %d -> %d", pp->FullScreen_RefreshRateInHz, d3d9ex_force_refresh_rate);
pp->FullScreen_RefreshRateInHz = d3d9ex_force_refresh_rate;
if (fdm) {