1
0
Fork 0
forked from wry/wry

icons: add icon infrastructure

This commit is contained in:
Julian Orth 2025-04-24 11:40:47 +02:00
parent 4970749924
commit 9192446602
10 changed files with 343 additions and 3 deletions

View file

@ -618,6 +618,7 @@ impl dyn GfxFramebuffer {
let (width, height) = self.logical_size(transform);
Rect::new(0, 0, width, height).unwrap()
},
icons: None,
};
cursor.render_hardware_cursor(&mut renderer);
self.render(
@ -906,6 +907,7 @@ pub fn create_render_pass(
let (width, height) = logical_size(physical_size, transform);
Rect::new(0, 0, width, height).unwrap()
},
icons: state.icons.get(state, scale),
};
node.node_render(&mut renderer, 0, 0, None);
if let Some(rect) = cursor_rect {