diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 09:19:52 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-17 09:19:52 +0100 |
| commit | 0d931fe17b32cc5082f1180138dbb7bd6416dd14 (patch) | |
| tree | 2c5b2f6176423cf53d419fd2e6d5131d2bbb224f /dev/modules/CoreGfx/CoreGfx.h | |
| parent | bfce4d5673fc469395e0d438daa7f6d839834abc (diff) | |
tools: feat: new syntax for function.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/modules/CoreGfx/CoreGfx.h')
| -rw-r--r-- | dev/modules/CoreGfx/CoreGfx.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dev/modules/CoreGfx/CoreGfx.h b/dev/modules/CoreGfx/CoreGfx.h index d5cfa5a3..0ab3bcbc 100644 --- a/dev/modules/CoreGfx/CoreGfx.h +++ b/dev/modules/CoreGfx/CoreGfx.h @@ -8,13 +8,13 @@ #include <NeKit/Defines.h> -#define fb_init() Kernel::UInt32 kCGCursor = 0 +#define cg_init() Kernel::UInt32 kCGCursor = 0 -#define fb_color(R, G, B) RGB(R, G, B) +#define cg_color(R, G, B) RGB(R, G, B) -#define fb_get_clear_clr() RGB(0, 0, 0x80) +#define cg_get_clear_clr() RGB(0, 0, 0x80) -#define fb_clear() kCGCursor = 0UL +#define cg_clear() kCGCursor = 0UL #ifdef __NE_AMD64__ /// @brief Performs Alpha drawing on the framebuffer. @@ -57,7 +57,7 @@ for (Kernel::UInt32 u = base_y; u < (height + base_y); ++u) { \ *(((volatile Kernel::UInt32*) (kHandoverHeader->f_GOP.f_The + \ 4 * kHandoverHeader->f_GOP.f_PixelPerLine * i + 4 * u))) = \ - fb_get_clear_clr(); \ + cg_get_clear_clr(); \ } \ } @@ -111,8 +111,8 @@ #endif // ifndef CORE_GFX_ACCESSIBILITY_H namespace FB { -inline Void fb_clear_video() noexcept { - FBDrawInRegion(fb_get_clear_clr(), FB::FBAccessibilty::Height(), FB::FBAccessibilty::Width(), 0, +inline Void cg_clear_video() noexcept { + FBDrawInRegion(cg_get_clear_clr(), FB::CGAccessibilty::Height(), FB::CGAccessibilty::Width(), 0, 0); } } // namespace FB
\ No newline at end of file |
