From f69f0a8b467153efb76a67da8b27c4b863cc6164 Mon Sep 17 00:00:00 2001 From: Will Xyen Date: Sat, 30 Nov 2019 21:46:25 -0500 Subject: [PATCH] sdvxhook2: add some minor documentation to config-gfx.h --- src/main/d3d9exhook/config-gfx.h | 12 ++++++++++++ src/main/d3d9exhook/d3d9ex.c | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main/d3d9exhook/config-gfx.h b/src/main/d3d9exhook/config-gfx.h index 000770f..0dc9afe 100644 --- a/src/main/d3d9exhook/config-gfx.h +++ b/src/main/d3d9exhook/config-gfx.h @@ -3,6 +3,12 @@ #include "cconfig/cconfig.h" +/** + * Config struct for d3d9exhook + * + * Note: forced_refresh_rate sets the monitor's refresh rate + * (it does not limit FPS or anything) + */ struct d3d9exhook_config_gfx { bool framed; bool windowed; @@ -11,8 +17,14 @@ struct d3d9exhook_config_gfx { int32_t forced_refresh_rate; }; +/** + * Add the gfx config set to the cconfig object + */ void d3d9exhook_config_gfx_init(struct cconfig *config); +/** + * Fill the actual config_gfx from the given config + */ void d3d9exhook_config_gfx_get( struct d3d9exhook_config_gfx *config_gfx, struct cconfig *config); diff --git a/src/main/d3d9exhook/d3d9ex.c b/src/main/d3d9exhook/d3d9ex.c index 5f67e83..877a1a5 100644 --- a/src/main/d3d9exhook/d3d9ex.c +++ b/src/main/d3d9exhook/d3d9ex.c @@ -244,8 +244,6 @@ static BOOL STDCALL my_EnumDisplayDevicesA( ok = real_EnumDisplayDevicesA(dev_name, dev_num, info, flags); - // force 60Hz here? - return ok; }