提交 b101868e 编写于 作者: J jp9000

Revert "win-capture: Don't draw window if minimized"

This reverts commit 997f05f1.
上级 997f05f1
......@@ -22,7 +22,6 @@ struct window_capture {
bool cursor;
bool compatibility;
bool use_wildcards; /* TODO */
bool minimized;
struct dc_capture capture;
......@@ -160,7 +159,6 @@ static void wc_tick(void *data, float seconds)
reset_capture = true;
} else if (IsIconic(wc->window)) {
wc->minimized = true;
return;
}
......@@ -188,7 +186,6 @@ static void wc_tick(void *data, float seconds)
wc->cursor, wc->compatibility);
}
wc->minimized = false;
dc_capture_capture(&wc->capture, wc->window);
obs_leave_graphics();
}
......@@ -196,9 +193,6 @@ static void wc_tick(void *data, float seconds)
static void wc_render(void *data, gs_effect_t *effect)
{
struct window_capture *wc = data;
if (wc->minimized)
return;
dc_capture_render(&wc->capture, obs_get_base_effect(OBS_EFFECT_OPAQUE));
UNUSED_PARAMETER(effect);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册