diff options
| author | Amlal <amlal@zka.com> | 2024-07-17 17:21:57 +0200 |
|---|---|---|
| committer | Amlal <amlal@zka.com> | 2024-07-17 17:21:57 +0200 |
| commit | 08ee53082f5c4d0f730336a821c154515c76f4de (patch) | |
| tree | 01b8d5593929acae9651651a7ef59f12f58c1066 /Boot/BootKit | |
| parent | 7b8f6b0644e16614ebb07983ff2e8809581f8350 (diff) | |
[MHR-36] Rendering QR code when user is using AMD64 release of newosldr.
Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'Boot/BootKit')
| -rw-r--r-- | Boot/BootKit/Vendor/Qr.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
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 <math.h> #include <stddef.h> @@ -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; } |
