crop text images that are too big

This commit is contained in:
2025-11-21 18:18:28 -05:00
parent 97b284e81e
commit 23c5abe5a9
7 changed files with 97 additions and 79 deletions

View File

@@ -48,7 +48,7 @@ macro_rules! impl_op {
}
impl const $opa for $T {
fn $fna(&mut self, rhs: Self) {
$(self.$field.$fna(rhs.$field);)*
*self = self.$fn(rhs);
}
}
impl const $op<f32> for $T {
@@ -71,7 +71,7 @@ macro_rules! impl_op {
}
impl const $opa<f32> for $T {
fn $fna(&mut self, rhs: f32) {
$(self.$field.$fna(rhs);)*
*self = self.$fn(rhs);
}
}
}