feat: introduce bootloader-agnostic Boot Contract, add btlist command to list connected Bluetooth devices
This commit is contained in:
@@ -18,11 +18,11 @@ namespace Graphics::Cursor {
|
||||
static uint64_t g_FbHeight = 0;
|
||||
static uint64_t g_FbPitch = 0; // in bytes
|
||||
|
||||
void Initialize(limine_framebuffer* framebuffer) {
|
||||
g_FbBase = reinterpret_cast<uint32_t*>(framebuffer->address);
|
||||
g_FbWidth = framebuffer->width;
|
||||
g_FbHeight = framebuffer->height;
|
||||
g_FbPitch = framebuffer->pitch;
|
||||
void Initialize(const montauk::boot::Framebuffer& framebuffer) {
|
||||
g_FbBase = reinterpret_cast<uint32_t*>(framebuffer.address);
|
||||
g_FbWidth = framebuffer.width;
|
||||
g_FbHeight = framebuffer.height;
|
||||
g_FbPitch = framebuffer.pitch;
|
||||
|
||||
Kt::KernelLogStream(Kt::OK, "Graphics") << "Framebuffer initialized ("
|
||||
<< (uint64_t)g_FbWidth << "x" << (uint64_t)g_FbHeight << ")";
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <limine.h>
|
||||
#include <Boot/BootInfo.hpp>
|
||||
|
||||
namespace Graphics::Cursor {
|
||||
|
||||
void Initialize(limine_framebuffer* framebuffer);
|
||||
void Initialize(const montauk::boot::Framebuffer& framebuffer);
|
||||
|
||||
uint32_t* GetFramebufferBase();
|
||||
uint64_t GetFramebufferWidth();
|
||||
|
||||
Reference in New Issue
Block a user