From f7c00eb985d94ce60578dd5234bfbd9bb067f47a Mon Sep 17 00:00:00 2001 From: bunnie Date: Tue, 27 Jan 2026 22:04:51 +0800 Subject: [PATCH] fix some rendering artifacts and add todo's on the QR code rendering --- libs/ux-api/src/minigfx/handlers.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ux-api/src/minigfx/handlers.rs b/libs/ux-api/src/minigfx/handlers.rs index c8c3d6845..99836533b 100644 --- a/libs/ux-api/src/minigfx/handlers.rs +++ b/libs/ux-api/src/minigfx/handlers.rs @@ -441,9 +441,11 @@ pub fn render_qr( op::rectangle(display, r, screen_clip.into(), false); // now raster in the modules + // TODO: on dense codes, the dark colors are over-sized by a pixel. Figure this out. + // TODO: on smaller than optimal codes, align the QR code into the center of the screen. let mut line_top_left = Point::new(left_edge + module_width * QUIET_MODULES, tl.y + module_width * QUIET_MODULES); - let dark = DrawStyle::new(PixelColor::Dark, PixelColor::Dark, 1); + let dark = DrawStyle::new(PixelColor::Dark, PixelColor::Dark, 0); for line in qr_render.modules.chunks(qr_render.width) { for (i, &module) in line.iter().enumerate() { if module {