translate mode win, update input layout, just a temporary workaround

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-02 14:31:30 +08:00
parent 707fde151c
commit 51ff2d35b5
2 changed files with 37 additions and 2 deletions

View File

@@ -218,7 +218,7 @@ impl VideoRenderer {
}
pub fn on_rgba(&self, rgba: &Vec<u8>) {
if self.ptr == usize::default() {
if self.ptr == usize::default() || self.width == 0 || self.height == 0 {
return;
}
if let Some(func) = &self.on_rgba_func {