提交 74354dc4 编写于 作者: J jp9000

win-capture: Use texture for actual source size

上级 bdda2b0b
......@@ -1360,13 +1360,15 @@ static void game_capture_render(void *data, gs_effect_t *effect)
static uint32_t game_capture_width(void *data)
{
struct game_capture *gc = data;
return gc->active ? gc->global_hook_info->cx : 0;
return (gc->active && gc->texture) ?
gs_texture_get_width(gc->texture) : 0;
}
static uint32_t game_capture_height(void *data)
{
struct game_capture *gc = data;
return gc->active ? gc->global_hook_info->cy : 0;
return (gc->active && gc->texture) ?
gs_texture_get_height(gc->texture) : 0;
}
static const char *game_capture_name(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册