Revert "win-capture: Don't draw window if minimized"
This reverts commit 997f05f10ee7eec250c318f4c4e31d00cebcde57.
This commit is contained in:
parent
997f05f10e
commit
b101868e47
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user