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

This reverts commit 997f05f10e.
master
jp9000 2016-05-15 06:14:18 -07:00
parent 997f05f10e
commit b101868e47
1 changed files with 0 additions and 6 deletions

View File

@ -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);