diff options
Diffstat (limited to 'Private/NewBoot/BootKit')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 8 |
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); } } |
