iidxhook/d3d9exhook: Use -1 to specify default adapter instead of 0 because the indexing starts at 0
Originally thought the default monitor showed up again later, it does not
This commit is contained in:
@@ -86,7 +86,7 @@ static int32_t d3d9ex_force_refresh_rate = -1;
|
||||
static int32_t d3d9ex_window_width = -1;
|
||||
static int32_t d3d9ex_window_height = -1;
|
||||
static bool d3d9ex_window_framed;
|
||||
static int32_t d3d9ex_device_adapter = D3DADAPTER_DEFAULT;
|
||||
static int32_t d3d9ex_device_adapter = -1;
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
@@ -212,7 +212,7 @@ static HRESULT STDCALL my_CreateDeviceEx(
|
||||
}
|
||||
}
|
||||
|
||||
if (d3d9ex_device_adapter != D3DADAPTER_DEFAULT) {
|
||||
if (d3d9ex_device_adapter >= 0) {
|
||||
log_info("Forcing adapter %d -> %d", adapter, d3d9ex_device_adapter);
|
||||
adapter = d3d9ex_device_adapter;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user