From 2e0f71fb35b9753c1684d424a32626957ada468f Mon Sep 17 00:00:00 2001 From: csf Date: Fri, 16 Sep 2022 21:55:51 +0800 Subject: [PATCH] fix sciter has_hwcodec --- src/ui/remote.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/remote.rs b/src/ui/remote.rs index 97dfe1d02..97e130d09 100644 --- a/src/ui/remote.rs +++ b/src/ui/remote.rs @@ -28,6 +28,7 @@ use hbb_common::{ use crate::clipboard_file::*; use crate::{ client::*, + ui_interface::has_hwcodec, ui_session_interface::{InvokeUiSession, Session}, }; @@ -440,6 +441,10 @@ impl SciterSession { v } + fn has_hwcodec(&self) -> bool { + has_hwcodec() + } + pub fn t(&self, name: String) -> String { crate::client::translate(name) }