mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Fix wasm build
This commit is contained in:
@@ -185,6 +185,7 @@ impl AppRunner {
|
||||
platform_output,
|
||||
textures_delta,
|
||||
shapes,
|
||||
pixels_per_point,
|
||||
viewports,
|
||||
viewport_commands: _, // TODO(emilk): handle some of the commands, like setting the title and icon
|
||||
} = full_output;
|
||||
@@ -195,9 +196,7 @@ impl AppRunner {
|
||||
|
||||
self.handle_platform_output(platform_output);
|
||||
self.textures_delta.append(textures_delta);
|
||||
let clipped_primitives = self
|
||||
.egui_ctx
|
||||
.tessellate(shapes, self.egui_ctx.pixels_per_point());
|
||||
let clipped_primitives = self.egui_ctx.tessellate(shapes, pixels_per_point);
|
||||
|
||||
{
|
||||
let app_output = self.frame.take_app_output();
|
||||
|
||||
@@ -267,8 +267,6 @@ impl ContextImpl {
|
||||
|
||||
viewport.frame_state.begin_frame(&viewport.input);
|
||||
|
||||
let pixels_per_point = viewport.input.pixels_per_point();
|
||||
|
||||
// Ensure we register the background area so panels and background ui can catch clicks:
|
||||
let screen_rect = viewport.input.screen_rect();
|
||||
self.memory.areas_mut().set_state(
|
||||
@@ -287,6 +285,7 @@ impl ContextImpl {
|
||||
use crate::frame_state::AccessKitFrameState;
|
||||
let id = crate::accesskit_root_id();
|
||||
let mut builder = accesskit::NodeBuilder::new(accesskit::Role::Window);
|
||||
let pixels_per_point = viewport.input.pixels_per_point();
|
||||
builder.set_transform(accesskit::Affine::scale(pixels_per_point.into()));
|
||||
let mut node_builders = IdMap::default();
|
||||
node_builders.insert(id, builder);
|
||||
|
||||
Reference in New Issue
Block a user