summaryrefslogtreecommitdiffhomepage
path: root/dev/modules
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-10-20 17:53:37 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-10-20 17:53:37 +0200
commit7764e88cd0032cd57fdc17a2906db9d8af9999e1 (patch)
treea373ed0682c3161ee38b77089bc8fab821304a6b /dev/modules
parent22e85ecdb17888268d32997b20e01cc98968cc3d (diff)
IMP: New implementations and improvements.
- Heap class allocation have been fixed. - Scheduler allocation has been fixed. - A new better flow for the kernel has been designed. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/modules')
-rw-r--r--dev/modules/FB/FB.hxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/dev/modules/FB/FB.hxx b/dev/modules/FB/FB.hxx
index 1b30fb8e..0f3dbfd6 100644
--- a/dev/modules/FB/FB.hxx
+++ b/dev/modules/FB/FB.hxx
@@ -18,7 +18,7 @@
/// @brief Performs OR drawing on the framebuffer.
#define CGDrawBitMapInRegionA(_BitMp, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT i = _BaseX; i < (_Height + _BaseX); ++i) \
{ \
@@ -27,15 +27,15 @@
*(((Kernel::UInt32*)(kHandoverHeader->f_GOP.f_The + \
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
i + \
- 4 * u))) |= (_BitMp)[kCGCursor]; \
+ 4 * u))) |= (_BitMp)[kCGCursor]; \
\
- ++kCGCursor; \
+ ++kCGCursor; \
} \
}
/// @brief Draws a resource.
#define CGDrawBitMapInRegion(_BitMp, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT i = _BaseX; i < (_Height + _BaseX); ++i) \
{ \
@@ -44,14 +44,14 @@
*(((Kernel::UInt32*)(kHandoverHeader->f_GOP.f_The + \
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
i + \
- 4 * u))) = (_BitMp)[kCGCursor]; \
+ 4 * u))) = (_BitMp)[kCGCursor]; \
\
- ++kCGCursor; \
+ ++kCGCursor; \
} \
}
#define CGDrawBitMapInRegionToRgn(_Rgn, _BitMp, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT i = _BaseX; i < (_Height + _BaseX); ++i) \
{ \
@@ -60,9 +60,9 @@
*(((Kernel::UInt32*)(_Rgn + \
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
i + \
- 4 * u))) = (_BitMp)[kCGCursor]; \
+ 4 * u))) = (_BitMp)[kCGCursor]; \
\
- ++kCGCursor; \
+ ++kCGCursor; \
} \
}
@@ -96,7 +96,7 @@
/// @brief Draws inside a zone.
#define CGDrawInRegionToRgn(_Rgn, _Clr, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT x_base = _BaseX; x_base < (_Width + _BaseX); ++x_base) \
{ \
@@ -105,13 +105,13 @@
*(((volatile Kernel::UInt32*)(_Rgn + \
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
x_base + \
- 4 * y_base))) = _Clr[kCGCursor]; \
- ++kCGCursor; \
+ 4 * y_base))) = _Clr[kCGCursor]; \
+ ++kCGCursor; \
} \
}
#define CGDrawInRegionToVideoRgn(_VideoRgn, _Clr, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT x_base = _BaseX; x_base < (_Width + _BaseX); ++x_base) \
{ \
@@ -121,12 +121,12 @@
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
x_base + \
4 * y_base))) = _Clr; \
- ++kCGCursor; \
+ ++kCGCursor; \
} \
}
#define CGDrawInRegionToVideoRgnA(_VideoRgn, _Clr, _Height, _Width, _BaseX, _BaseY) \
- kCGCursor = 0; \
+ kCGCursor = 0; \
\
for (Kernel::SizeT x_base = _BaseX; x_base < (_Width + _BaseX); ++x_base) \
{ \
@@ -136,7 +136,7 @@
4 * kHandoverHeader->f_GOP.f_PixelPerLine * \
x_base + \
4 * y_base))) |= _Clr; \
- ++kCGCursor; \
+ ++kCGCursor; \
} \
}