video: render hardware cursor in screencasts
This commit is contained in:
parent
d4fc672fb3
commit
4d8e744c2f
4 changed files with 86 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue