Skip to content

Commit 72db980

Browse files
fix vello canvas rendering for web
1 parent df89421 commit 72db980

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

node-graph/gstd/src/render_node.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ async fn render<'a: 'n>(
207207

208208
let frame = SurfaceFrame {
209209
surface_id: surface_handle.window_id,
210-
resolution,
210+
// TODO: Find a cleaner way to get the unscaled resolution here.
211+
// This is done because the surface frame (canvas) is in logical pixels, not physical pixels.
212+
resolution: footprint.resolution,
211213
transform: glam::DAffine2::IDENTITY,
212214
};
213215

0 commit comments

Comments
 (0)