summaryrefslogtreecommitdiffhomepage
path: root/dev/Modules/FB
diff options
context:
space:
mode:
authorAmlal EL Mahrouss. <113760121+amlel-el-mahrouss@users.noreply.github.com>2024-11-29 22:19:00 +0100
committerGitHub <noreply@github.com>2024-11-29 22:19:00 +0100
commitb2588beae1dceeb0a0c5e95976874c6d6d53c703 (patch)
treefc2f1e9fa9232693785452d4a1e887ff06d36b6a /dev/Modules/FB
parent8e42fab37245bb27786191600d4a3dc39783eece (diff)
parent65a138dde55e69cf5292c0601f37d023003e74e2 (diff)
Merge pull request #5 from ELMH-Group/unstable
Unstable -> Master
Diffstat (limited to 'dev/Modules/FB')
-rw-r--r--dev/Modules/FB/FB.h2
-rw-r--r--dev/Modules/FB/Text.h2
-rw-r--r--dev/Modules/FB/WS.h65
3 files changed, 2 insertions, 67 deletions
diff --git a/dev/Modules/FB/FB.h b/dev/Modules/FB/FB.h
index 49ff2c6a..1d68dc20 100644
--- a/dev/Modules/FB/FB.h
+++ b/dev/Modules/FB/FB.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, EL Mahrouss Logic, all rights reserved.
+ Copyright (C) 2024, ELMH Group, all rights reserved.
------------------------------------------- */
diff --git a/dev/Modules/FB/Text.h b/dev/Modules/FB/Text.h
index abccb110..0b5aa7f8 100644
--- a/dev/Modules/FB/Text.h
+++ b/dev/Modules/FB/Text.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, EL Mahrouss Logic, all rights reserved.
+ Copyright (C) 2024, ELMH Group, all rights reserved.
------------------------------------------- */
diff --git a/dev/Modules/FB/WS.h b/dev/Modules/FB/WS.h
deleted file mode 100644
index 60c7a78c..00000000
--- a/dev/Modules/FB/WS.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -------------------------------------------
-
- Copyright (C) 2024, EL Mahrouss Logic, all rights reserved.
-
-------------------------------------------- */
-
-#pragma once
-
-#include <ArchKit/ArchKit.h>
-#include <NewKit/Utils.h>
-
-/// @file WS.h
-/// @brief WindowServer's window ownership implementation.
-/// It is used to draw within a window.
-
-#define rtl_allocate_backbuffer(width, height) new WS::WSBackBufferKind[width * height]
-#define rtl_compute_fb_geometry(width, height) (width * height)
-
-namespace WS
-{
- using namespace Kernel;
-
- class WSWindowTexture;
- class WSWindowContainer;
-
- typedef UInt32* WSBackBufferKind;
-
- class WSWindowContainer final
- {
- public:
- WSWindowContainer() = default;
- ~WSWindowContainer() = default;
-
- ZKA_COPY_DEFAULT(WSWindowContainer);
-
- /// @note the trick is, it could be GPU processed data, that's the cool thing.
- BOOL Fill(WSBackBufferKind contents_buf, SizeT contents_len)
- {
- if (contents_len > BackBufferLength)
- return NO;
-
- if (!contents_buf)
- return NO;
-
- if (!BackBuffer ||
- !BackBufferLength)
- return NO;
-
- rt_copy_memory(contents_buf, BackBuffer, contents_len);
- return YES;
- }
-
- BOOL Fill(WSWindowContainer* container)
- {
- if (!container)
- return NO;
-
- return this->Fill(container->BackBuffer, container->BackBufferLength);
- }
-
- public:
- WSBackBufferKind BackBuffer{nullptr};
- SizeT BackBufferLength{0UL};
- };
-} // namespace WS