1
0
Fork 0
forked from wry/wry

video: render hardware cursor in screencasts

This commit is contained in:
Julian Orth 2024-02-16 19:12:50 +01:00
parent d4fc672fb3
commit 4d8e744c2f
4 changed files with 86 additions and 10 deletions

View file

@ -78,15 +78,21 @@ pub async fn output_render_data(state: Rc<State>) {
}
impl OutputNode {
pub fn perform_screencopies(&self, fb: &dyn GfxFramebuffer, tex: &Rc<dyn GfxTexture>) {
pub fn perform_screencopies(
&self,
fb: &dyn GfxFramebuffer,
tex: &Rc<dyn GfxTexture>,
render_hardware_cursor: bool,
) {
if let Some(workspace) = self.workspace.get() {
if !workspace.capture.get() {
return;
}
}
self.global.perform_screencopies(fb, tex);
self.global
.perform_screencopies(fb, tex, render_hardware_cursor);
for sc in self.screencasts.lock().values() {
sc.copy_texture(self, tex);
sc.copy_texture(self, tex, render_hardware_cursor);
}
}