1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 14:49:06 -04:00

Fix canvas glyph renderer for web-sys unstable get_image_data (i32 args)

This commit is contained in:
lucasmerlin
2026-06-02 23:42:53 +02:00
parent a0c311f436
commit ae6d64a61c

View File

@@ -160,7 +160,7 @@ impl CanvasGlyphRenderer {
// Extract image data (now at device pixel resolution)
let image_data = self
.context
.get_image_data(0.0, 0.0, width as f64, height as f64)
.get_image_data(0, 0, width as i32, height as i32)
.ok()?;
let rgba_data = image_data.data().0;