Advertisement
Guest User

Untitled

a guest
Aug 7th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include <efi.h>
  2. #include "../boot/bootinfo.h"
  3. #include "graphics.h"
  4.  
  5. void kernel_main(BOOTINFO* b) {
  6.     //graphics_init(b->GraphicsInfo->HorizontalResolution, b->GraphicsInfo->VerticalResolution, b->GraphicsInfo->PixelsPerScanLine, (uint32_t*) b->GraphicsFrameBuffer);
  7.     uint32_t* at = (uint32_t*)b->GraphicsFrameBuffer;
  8.     for (unsigned i = 0; i < 500000; i++)
  9.         *at++ = 0x00ff0000;
  10.     /*rect(0, 0, 10, 10, BLUE);
  11.     line(20, 20, 45, 100, RED);
  12.     pixel(100, 100, CYAN);
  13. */}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement