fix rounding::zero

This commit is contained in:
kieran 2025-01-10 21:11:23 +00:00
parent cd6b538881
commit a5cf8679c3
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -42,7 +42,7 @@ impl Widget for QrCodeWidget<'_> {
painter.rect( painter.rect(
response.rect, response.rect,
Rounding::none(), Rounding::ZERO,
Color32::WHITE, Color32::WHITE,
Stroke::NONE, Stroke::NONE,
); );
@ -55,7 +55,7 @@ impl Widget for QrCodeWidget<'_> {
if matches!(c, Color::Dark) { if matches!(c, Color::Dark) {
painter.rect( painter.rect(
Rect::from_min_max(c_start, c_end), Rect::from_min_max(c_start, c_end),
Rounding::none(), Rounding::ZERO,
match c { match c {
Color::Light => Color32::WHITE, Color::Light => Color32::WHITE,
Color::Dark => Color32::BLACK, Color::Dark => Color32::BLACK,