Skip to content

Commit

Permalink
app-surface 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jinleili committed Nov 3, 2024
1 parent ea48ab8 commit 609948d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion app-surface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "app-surface"
authors = ["jinleili"]
description = "Integrate wgpu into your existing iOS and Android apps."
edition = "2021"
version = "1.2.1"
version = "1.2.2"
rust-version = "1.76"
repository = "https://github.com/jinleili/wgpu-in-app"
keywords = ["android", "SurfaceView", "ios", "macos", "wgpu"]
Expand Down
2 changes: 0 additions & 2 deletions app-surface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ pub trait SurfaceFrame {
fn view_size(&self) -> ViewSize;
// After App view's size or orientation changed, need to resize surface.
fn resize_surface(&mut self);
#[cfg(target_arch = "wasm32")]
fn resize_surface_by_size(&mut self, size: (u32, u32));
fn pintch(&mut self, _touch: Touch, _scale: f32) {}
fn touch(&mut self, _touch: Touch) {}
Expand Down Expand Up @@ -109,7 +108,6 @@ impl SurfaceFrame for AppSurface {
self.surface.configure(&self.device, &self.config);
}

#[cfg(target_arch = "wasm32")]
fn resize_surface_by_size(&mut self, size: (u32, u32)) {
self.ctx.config.width = size.0;
self.ctx.config.height = size.1;
Expand Down

0 comments on commit 609948d

Please sign in to comment.