New upstream version 24.0.5+dfsg1
This commit is contained in:
parent
52fa83f147
commit
4c2ea24267
61 changed files with 710 additions and 130 deletions
|
|
@ -664,7 +664,8 @@ void XCompcapMain::render(gs_effect_t *effect)
|
|||
effect = obs_get_base_effect(OBS_EFFECT_DEFAULT);
|
||||
|
||||
while (gs_effect_loop(effect, "Draw")) {
|
||||
xcursor_render(p->cursor);
|
||||
xcursor_render(p->cursor, -p->cur_cut_left,
|
||||
-p->cur_cut_top);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ void xcursor_tick(xcursor_t *data)
|
|||
XFree(xc);
|
||||
}
|
||||
|
||||
void xcursor_render(xcursor_t *data)
|
||||
void xcursor_render(xcursor_t *data, int x_offset, int y_offset)
|
||||
{
|
||||
if (!data->tex)
|
||||
return;
|
||||
|
|
@ -117,7 +117,8 @@ void xcursor_render(xcursor_t *data)
|
|||
gs_enable_color(true, true, true, false);
|
||||
|
||||
gs_matrix_push();
|
||||
gs_matrix_translate3f(data->render_x, data->render_y, 0.0f);
|
||||
gs_matrix_translate3f(data->render_x + x_offset,
|
||||
data->render_y + y_offset, 0.0f);
|
||||
gs_draw_sprite(data->tex, 0, 0, 0);
|
||||
gs_matrix_pop();
|
||||
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ void xcursor_tick(xcursor_t *data);
|
|||
*
|
||||
* This needs to be executed within a valid render context
|
||||
*/
|
||||
void xcursor_render(xcursor_t *data);
|
||||
void xcursor_render(xcursor_t *data, int x_offset, int y_offset);
|
||||
|
||||
/**
|
||||
* Specify offset for the cursor
|
||||
|
|
|
|||
|
|
@ -108,7 +108,6 @@ int randr_screen_count(xcb_connection_t *xcb)
|
|||
{
|
||||
if (!xcb)
|
||||
return 0;
|
||||
|
||||
xcb_screen_t *screen;
|
||||
screen = xcb_setup_roots_iterator(xcb_get_setup(xcb)).data;
|
||||
|
||||
|
|
|
|||
|
|
@ -324,7 +324,9 @@ static bool xshm_server_changed(obs_properties_t *props, obs_property_t *p,
|
|||
")",
|
||||
i, w, h, x, y);
|
||||
|
||||
obs_property_list_add_int(screens, screen_info.array, i);
|
||||
if (h > 0 && w > 0)
|
||||
obs_property_list_add_int(screens, screen_info.array,
|
||||
i);
|
||||
}
|
||||
|
||||
/* handle missing screen */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue