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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user