make painter not stupid (size ctx is kinda tho)

This commit is contained in:
iris committed 2025-12-16 00:26:25 -05:00
1 parent 486ed0ffd7
commit 2183fbd3cb
9 files changed
+217 -212

No files matched your search

+2 -2
View File
@@ -617,8 +617,8 @@ pub trait TextEditable<State> {
impl<State: 'static, I: IdLike<State, Widget = TextEdit<State>>> TextEditable<State> for I {
fn edit<'a>(&self, ui: &'a mut Ui<State>) -> TextEditCtx<'a, State> {
TextEditCtx {
text: ui.data.widgets.get_mut(self).unwrap(),
font_system: &mut ui.data.text.font_system,
text: ui.widgets.get_mut(self).unwrap(),
font_system: &mut ui.text.font_system,
}
}
}