summaryrefslogtreecommitdiffhomepage
path: root/Private/Source/Framebuffer.cxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-06 14:52:33 +0200
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-04-06 14:52:33 +0200
commit32f75625830660468287de0f213baee760fc6384 (patch)
treeaaa8286ee13a4188d826d4efd59482c7b1aa0e73 /Private/Source/Framebuffer.cxx
parent422b8029eba71b6fbb6b3dcb386b8e115bbd08ef (diff)
:boom: Breaking changes, disk API improvemenets and bringing support for
more drivers... Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/Source/Framebuffer.cxx')
-rw-r--r--Private/Source/Framebuffer.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/Private/Source/Framebuffer.cxx b/Private/Source/Framebuffer.cxx
index d0be2a13..5dc54c81 100644
--- a/Private/Source/Framebuffer.cxx
+++ b/Private/Source/Framebuffer.cxx
@@ -36,14 +36,14 @@ const UInt32 kRgbWhite = 0xFFFFFFFF;
* @return volatile*
*/
volatile UIntPtr *Framebuffer::operator[](const UIntPtr &pos) {
- return (UIntPtr *)(m_FrameBufferAddr->m_Base * pos);
+ return (UIntPtr *)(fFrameBufferAddr->fBase * pos);
}
/// @brief Boolean operator.
Framebuffer::operator bool() {
- return m_FrameBufferAddr.Leak()->m_Base != 0 &&
- m_Colour != FramebufferColorKind::INVALID &&
- m_FrameBufferAddr.Leak()->m_Base != kBadPtr;
+ return fFrameBufferAddr.Leak()->fBase != 0 &&
+ fColour != FramebufferColorKind::INVALID &&
+ fFrameBufferAddr.Leak()->fBase != kBadPtr;
}
/// @brief Set color kind of framebuffer.
@@ -51,26 +51,26 @@ Framebuffer::operator bool() {
/// @return
const FramebufferColorKind &Framebuffer::Color(
const FramebufferColorKind &colour) {
- if (m_Colour != FramebufferColorKind::INVALID &&
+ if (fColour != FramebufferColorKind::INVALID &&
colour != FramebufferColorKind::INVALID) {
- m_Colour = colour;
+ fColour = colour;
}
- return m_Colour;
+ return fColour;
}
/// @brief Leak framebuffer context.
/// @return The reference of the framebuffer context.
Ref<FramebufferContext *> &Framebuffer::Leak() {
- return this->m_FrameBufferAddr;
+ return this->fFrameBufferAddr;
}
Framebuffer &Framebuffer::DrawRect(SizeT width, SizeT height, SizeT x, SizeT y,
UInt32 color) {
for (NewOS::SizeT i = x; i < width + x; ++i) {
for (NewOS::SizeT u = y; u < height + y; ++u) {
- *(((volatile NewOS::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base +
- 4 * m_FrameBufferAddr.Leak()->m_Bpp * i +
+ *(((volatile NewOS::UInt32 *)(fFrameBufferAddr.Leak()->fBase +
+ 4 * fFrameBufferAddr.Leak()->fBpp * i +
4 * u))) = color;
}
}
@@ -79,8 +79,8 @@ Framebuffer &Framebuffer::DrawRect(SizeT width, SizeT height, SizeT x, SizeT y,
}
Framebuffer &Framebuffer::PutPixel(SizeT x, SizeT y, UInt32 color) {
- *(((volatile NewOS::UInt32 *)(m_FrameBufferAddr.Leak()->m_Base +
- 4 * m_FrameBufferAddr.Leak()->m_Bpp * x +
+ *(((volatile NewOS::UInt32 *)(fFrameBufferAddr.Leak()->fBase +
+ 4 * fFrameBufferAddr.Leak()->fBpp * x +
4 * y))) = color;
return *this;