mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Code cleanup: allow None mouse_pos + clippy fixes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#![allow(clippy::identity_op)]
|
||||
|
||||
const ANTI_ALIAS: bool = true;
|
||||
const AA_SIZE: f32 = 0.5; // TODO: 1.0 / pixels_per_point
|
||||
|
||||
@@ -129,7 +131,7 @@ impl Frame {
|
||||
let mut color_inner = color;
|
||||
if thin_line {
|
||||
// Fade out as it gets thinner:
|
||||
color_inner.a = (color_inner.a as f32 * width).round() as u8;
|
||||
color_inner.a = (f32::from(color_inner.a) * width).round() as u8;
|
||||
}
|
||||
// TODO: line caps ?
|
||||
let mut i0 = n - 1;
|
||||
|
||||
Reference in New Issue
Block a user