Skip to content

Commit

Permalink
Update visuals.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MeGaGiGaGon authored Nov 12, 2024
1 parent 644c124 commit 1e12afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/text_selection/visuals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn paint_text_selection(

// Start by appending the selection rectangle to end of the mesh, as two triangles (= 6 indices):
let num_indices_before = mesh.indices.len();
mesh.add_colored_rect(rect, color);
mesh.add_colored_rect(rect, color.gamma_multiply(0.5));
assert_eq!(num_indices_before + 6, mesh.indices.len());

// Copy out the new triangles:
Expand Down

0 comments on commit 1e12afc

Please sign in to comment.