From a974f2b8861bfd60613d1bf441f77a5aa0c6f76a Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Mon, 5 Aug 2024 14:50:32 +0200 Subject: [IMP] QR code on ke_stop screen instead of bootscreen. Signed-off-by: Amlal EL Mahrouss --- Kernel/FirmwareKit/EFI/API.hxx | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'Kernel/FirmwareKit') diff --git a/Kernel/FirmwareKit/EFI/API.hxx b/Kernel/FirmwareKit/EFI/API.hxx index 2883ee13..1466bdd1 100644 --- a/Kernel/FirmwareKit/EFI/API.hxx +++ b/Kernel/FirmwareKit/EFI/API.hxx @@ -16,8 +16,6 @@ // forward decl. class BTextWriter; -#define cWebsiteMacro "https://zka-tech.nl/hulp" - #define __BOOTKIT_NO_INCLUDE__ 1 #include @@ -88,28 +86,7 @@ Bascially frees everything we have in the EFI side. ST->ConOut->OutputString(ST->ConOut, L" ***\r"); -#ifdef __NEWOSLDR__ - // Show the QR code now. - - constexpr auto cVer = 4; - const auto cECC = qr::Ecc::H; - const auto cInput = cWebsiteMacro; - const auto cInputLen = StrLen(cWebsiteMacro); - - qr::Qr encoder; - qr::QrDelegate encoderDelegate; - - encoder.encode(cInput, cInputLen, cECC, 0); // Manual mask 0 - - const auto cWhereStartX = (kHandoverHeader->f_GOP.f_Width - encoder.side_size()) - 20; - const auto cWhereStartY = (kHandoverHeader->f_GOP.f_Height - encoder.side_size()) / 2; - - // tell delegate to draw encoded QR now. - encoderDelegate.draw(encoder, cWhereStartX, - cWhereStartY); - EFI::Stop(); -#endif // ifdef __NEWOSLDR__ } } // namespace EFI -- cgit v1.2.3