diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-21 20:50:22 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-21 20:50:22 +0100 |
| commit | 47a0e9b901e9e51b3f0ee5dd30d52ff1a5c8fcc0 (patch) | |
| tree | 1c2e86bd4313bb40dfa3e70e7e31a8be71bf0c61 /dev/Modules | |
| parent | d5397d2f3be6f3de742736e5d1fdfc3121879f70 (diff) | |
IMP: Compile using -Wall and scheduler improvements.
Diffstat (limited to 'dev/Modules')
| -rw-r--r-- | dev/Modules/FB/WS.h | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/dev/Modules/FB/WS.h b/dev/Modules/FB/WS.h index 5155ab94..cfca3626 100644 --- a/dev/Modules/FB/WS.h +++ b/dev/Modules/FB/WS.h @@ -16,43 +16,42 @@ namespace WS { - using namespace Kernel; + using namespace Kernel; - struct WSWindowContainer; + struct WSWindowContainer; - typedef UInt32* WSBackBufferKind; + typedef UInt32* WSBackBufferKind; - class WSWindowContainer final - { - public: - WSWindowContainer() = default; - ~WSWindowContainer() = default; + class WSWindowContainer final + { + public: + WSWindowContainer() = default; + ~WSWindowContainer() = default; - ZKA_COPY_DEFAULT(WSWindowContainer); + ZKA_COPY_DEFAULT(WSWindowContainer); - /// @note the trick is, it could be GPU processed data, that's the cool thing. - BOOL PopulateWindow(WSBackBufferKind contents_buf, SizeT contents_len) - { - if (contents_len > BackBufferLength) - return NO; + /// @note the trick is, it could be GPU processed data, that's the cool thing. + BOOL PopulateWindow(WSBackBufferKind contents_buf, SizeT contents_len) + { + if (contents_len > BackBufferLength) + return NO; - if (!contents_buf) - return NO; + if (!contents_buf) + return NO; - if (!BackBuffer || - !BackBufferLength) - return NO; + if (!BackBuffer || + !BackBufferLength) + return NO; - rt_copy_memory(contents_buf, BackBuffer, contents_len); - return YES; - } + rt_copy_memory(contents_buf, BackBuffer, contents_len); + return YES; + } - public: - WSBackBufferKind BackBuffer{nullptr}; - SizeT BackBufferLength{0UL}; - - }; -} + public: + WSBackBufferKind BackBuffer{nullptr}; + SizeT BackBufferLength{0UL}; + }; +} // namespace WS #define rtl_allocate_backbuffer(width, height) new WS::WSBackBufferKind[width * height] #define rtl_compute_fb_geometry(width, height) (width * height) |
