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