Skip to content

Commit

Permalink
chore(web): bump softbuffer to 0.4.5
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
  • Loading branch information
elmarco committed Aug 7, 2024
1 parent aa598a1 commit 41917a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 101 deletions.
106 changes: 9 additions & 97 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions crates/ironrdp-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gloo-timers = { version = "0.3", default-features = false, features = ["futures"
tracing-web = "0.1"

# Rendering
softbuffer = { version = "0.3", default-features = false }
softbuffer = { version = "0.4", default-features = false }
png = "0.17"
resize = { version = "0.8", features = ["std"], default-features = false }
rgb = "0.8"
Expand Down Expand Up @@ -74,4 +74,3 @@ base64 = "0.22"

[lints]
workspace = true

5 changes: 3 additions & 2 deletions crates/ironrdp-web/src/canvas.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use std::num::NonZeroU32;

use ironrdp::pdu::geometry::{InclusiveRectangle, Rectangle as _};
use softbuffer::{NoDisplayHandle, NoWindowHandle};
use web_sys::HtmlCanvasElement;

pub(crate) struct Canvas {
width: u32,
surface: softbuffer::Surface,
surface: softbuffer::Surface<NoDisplayHandle, NoWindowHandle>,
}

impl Canvas {
Expand All @@ -21,7 +22,7 @@ impl Canvas {

#[cfg(not(target_arch = "wasm32"))]
let mut surface = {
fn stub(_: HtmlCanvasElement) -> softbuffer::Surface {
fn stub(_: HtmlCanvasElement) -> softbuffer::Surface<NoDisplayHandle, NoWindowHandle> {
unimplemented!()
}

Expand Down

0 comments on commit 41917a9

Please sign in to comment.