diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-05 14:50:32 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-08-05 14:50:32 +0200 |
| commit | a974f2b8861bfd60613d1bf441f77a5aa0c6f76a (patch) | |
| tree | 19ef849b3d1bb785519a7998f13ceb0e30b0b079 /Kernel/FirmwareKit | |
| parent | cc03f40d9fb1d68bfd945284a3ff5067dfd8475a (diff) | |
[IMP] QR code on ke_stop screen instead of bootscreen.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/FirmwareKit')
| -rw-r--r-- | Kernel/FirmwareKit/EFI/API.hxx | 23 |
1 files changed, 0 insertions, 23 deletions
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 <BootKit/BootKit.hxx> @@ -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<cVer> 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<cVer>(encoder, cWhereStartX, - cWhereStartY); - EFI::Stop(); -#endif // ifdef __NEWOSLDR__ } } // namespace EFI |
