From 08ee53082f5c4d0f730336a821c154515c76f4de Mon Sep 17 00:00:00 2001 From: Amlal Date: Wed, 17 Jul 2024 17:21:57 +0200 Subject: [MHR-36] Rendering QR code when user is using AMD64 release of newosldr. Signed-off-by: Amlal --- Boot/BootKit/Vendor/Qr.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Boot/BootKit') diff --git a/Boot/BootKit/Vendor/Qr.hxx b/Boot/BootKit/Vendor/Qr.hxx index 3616aaac..d1820330 100644 --- a/Boot/BootKit/Vendor/Qr.hxx +++ b/Boot/BootKit/Vendor/Qr.hxx @@ -1,6 +1,7 @@ #ifndef QR_HXX #define QR_HXX +#include "BootKit/BootKit.hxx" extern "C" { #include #include @@ -369,6 +370,11 @@ namespace qr if (!this->status) return false; // it may be invalid. + BTextWriter writer; + writer.Write(L"Printing QR-code...\r"); + + CGInit(); + for (int y = 0; y < (this->side_size()); ++y) { for (int x = 0; x < (this->side_size()); ++x) @@ -380,6 +386,8 @@ namespace qr } } + CGFini(); + return false; } -- cgit v1.2.3