1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 13:20:05 -04:00

Make Galleys share Rows and store their offsets

This commit is contained in:
Hubert Głuchowski
2024-11-28 17:40:59 +01:00
parent 150c0f662b
commit db32a1ed44
13 changed files with 174 additions and 127 deletions

View File

@@ -88,7 +88,8 @@ pub fn adjust_colors(
if !galley.is_empty() {
let galley = std::sync::Arc::make_mut(galley);
for row in &mut galley.rows {
for (row, _) in &mut galley.rows {
let row = Arc::make_mut(row);
for vertex in &mut row.visuals.mesh.vertices {
adjust_color(&mut vertex.color);
}