clang-format pass
This commit is contained in:
@@ -52,13 +52,15 @@ void d3d9exhook_config_gfx_init(struct cconfig *config)
|
||||
config,
|
||||
D3D9EXHOOK_CONFIG_GFX_FORCED_RR_KEY,
|
||||
D3D9EXHOOK_CONFIG_GFX_DEFAULT_FORCED_RR_VALUE,
|
||||
"Forced refresh rate, -1 to not force any (try 59 or 60 if monitor check fails to lock on high refresh rate monitors)");
|
||||
"Forced refresh rate, -1 to not force any (try 59 or 60 if monitor "
|
||||
"check fails to lock on high refresh rate monitors)");
|
||||
|
||||
cconfig_util_set_int(
|
||||
config,
|
||||
D3D9EXHOOK_CONFIG_GFX_DEVICE_ADAPTER_KEY,
|
||||
D3D9EXHOOK_CONFIG_GFX_DEFAULT_DEVICE_ADAPTER_VALUE,
|
||||
"D3D9ex device adapter (monitor), 0 (D3DADAPTER_DEFAULT) to use default, 1, 2 etc. to use specified adapter");
|
||||
"D3D9ex device adapter (monitor), 0 (D3DADAPTER_DEFAULT) to use "
|
||||
"default, 1, 2 etc. to use specified adapter");
|
||||
}
|
||||
|
||||
void d3d9exhook_config_gfx_get(
|
||||
@@ -142,6 +144,7 @@ void d3d9exhook_config_gfx_get(
|
||||
"to default '%d'",
|
||||
D3D9EXHOOK_CONFIG_GFX_DEVICE_ADAPTER_KEY,
|
||||
D3D9EXHOOK_CONFIG_GFX_DEFAULT_DEVICE_ADAPTER_VALUE);
|
||||
config_gfx->device_adapter = D3D9EXHOOK_CONFIG_GFX_DEFAULT_DEVICE_ADAPTER_VALUE;
|
||||
config_gfx->device_adapter =
|
||||
D3D9EXHOOK_CONFIG_GFX_DEFAULT_DEVICE_ADAPTER_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
/**
|
||||
* Config struct for d3d9exhook
|
||||
*
|
||||
*
|
||||
* Note: forced_refresh_rate sets the monitor's refresh rate
|
||||
* (it does not limit FPS or anything)
|
||||
*/
|
||||
|
||||
@@ -201,7 +201,10 @@ static HRESULT STDCALL my_CreateDeviceEx(
|
||||
pp->FullScreen_RefreshRateInHz = 0;
|
||||
} else {
|
||||
if (d3d9ex_force_refresh_rate > 0) {
|
||||
log_info("Forcing refresh rate %d -> %d", pp->FullScreen_RefreshRateInHz, d3d9ex_force_refresh_rate);
|
||||
log_info(
|
||||
"Forcing refresh rate %d -> %d",
|
||||
pp->FullScreen_RefreshRateInHz,
|
||||
d3d9ex_force_refresh_rate);
|
||||
pp->FullScreen_RefreshRateInHz = d3d9ex_force_refresh_rate;
|
||||
if (fdm) {
|
||||
fdm->RefreshRate = pp->FullScreen_RefreshRateInHz;
|
||||
@@ -267,7 +270,7 @@ void d3d9ex_hook_init(void)
|
||||
log_info("Inserted graphics hooks");
|
||||
}
|
||||
|
||||
void d3d9ex_configure(struct d3d9exhook_config_gfx* gfx_config)
|
||||
void d3d9ex_configure(struct d3d9exhook_config_gfx *gfx_config)
|
||||
{
|
||||
d3d9ex_windowed = gfx_config->windowed;
|
||||
d3d9ex_window_framed = gfx_config->framed;
|
||||
|
||||
@@ -16,6 +16,6 @@ void d3d9ex_hook_init(void);
|
||||
*
|
||||
* @param gfx_config Config to apply.
|
||||
*/
|
||||
void d3d9ex_configure(struct d3d9exhook_config_gfx* gfx_config);
|
||||
void d3d9ex_configure(struct d3d9exhook_config_gfx *gfx_config);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user