blob: 3b8fa229eedd49ae25abee8591d24bed066fee68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* -------------------------------------------
Copyright Mahrouss Logic
File: Framebuffer.cxx
Purpose: EFI C++ library
Revision History:
01/02/24: Added file (amlel)
------------------------------------------- */
#include <KernelKit/Framebuffer.hpp>
using namespace HCore;
volatile UIntPtr *Framebuffer::operator[](const UIntPtr &width_and_height) {
return (UIntPtr *)(m_FrameBufferAddr->m_Base * width_and_height);
}
const FramebufferColorKind &Framebuffer::Color(
const FramebufferColorKind &colour) {
if (m_Colour != FramebufferColorKind::INVALID &&
colour != FramebufferColorKind::INVALID) {
m_Colour = colour;
}
return m_Colour;
}
Ref<FramebufferContext *> &Framebuffer::Leak() {
return this->m_FrameBufferAddr;
}
|