summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/BootKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 20:32:18 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-04 20:32:18 +0100
commitb76f26d281c77e3fa028d4217a1456c43ab68d06 (patch)
tree66cebff0951c52fbf0b5289ca4c1ee3584e33776 /Private/NewBoot/BootKit
parent9fe3b6e1e2447a11644307e83df2b109b24fe0d1 (diff)
HCR-11 : Found the reason why it doesn't work, fixing it tomorrow.
Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit')
-rw-r--r--Private/NewBoot/BootKit/BootKit.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx
index 61ad81f2..5e0ca135 100644
--- a/Private/NewBoot/BootKit/BootKit.hxx
+++ b/Private/NewBoot/BootKit/BootKit.hxx
@@ -166,10 +166,12 @@ inline Void InitQT() noexcept {
BS->LocateProtocol(&gopGuid, nullptr, (VoidPtr *)&kGop);
- for (int w = 0; w < kGop->Mode->Info->VerticalResolution; ++w) {
- for (int h = 0; h < kGop->Mode->Info->HorizontalResolution; ++h) {
+ UInt16 kStride = 4;
+
+ for (int x = 0; x < kGop->Mode->Info->VerticalResolution; ++x) {
+ for (int y = 0; y < kGop->Mode->Info->HorizontalResolution; ++y) {
*((UInt32 *)(kGop->Mode->FrameBufferBase +
- 4 * kGop->Mode->Info->PixelsPerScanLine * w + 4 * h)) =
+ 4 * kGop->Mode->Info->PixelsPerScanLine * x + kStride * y)) =
RGB(10, 10, 10);
}
}