From 4c714f2c24c5df78bae2f35c42c73107de4c8c71 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 18 Mar 2024 12:35:19 +0100 Subject: unstable, unrelated: See below. - :boom: Breaking changes in System.Core.dll - Framebuffer, moved operator bool into c++ source file. - Remove zlib in favor of our own Zip API. Signed-off-by: Amlal El Mahrouss --- Private/KernelKit/Framebuffer.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Private/KernelKit/Framebuffer.hpp') diff --git a/Private/KernelKit/Framebuffer.hpp b/Private/KernelKit/Framebuffer.hpp index 2847efb0..daf95ed0 100644 --- a/Private/KernelKit/Framebuffer.hpp +++ b/Private/KernelKit/Framebuffer.hpp @@ -28,7 +28,7 @@ class FramebufferContext final { class Framebuffer final { public: - Framebuffer(Ref &addr) : m_FrameBufferAddr(addr) {} + explicit Framebuffer(Ref &addr) : m_FrameBufferAddr(addr) {} ~Framebuffer() {} Framebuffer &operator=(const Framebuffer &) = delete; @@ -36,10 +36,8 @@ class Framebuffer final { volatile UIntPtr *operator[](const UIntPtr &pos); - operator bool() { - return m_FrameBufferAddr && m_Colour != FramebufferColorKind::INVALID; - } - + operator bool(); + const FramebufferColorKind &Color( const FramebufferColorKind &colour = FramebufferColorKind::INVALID); -- cgit v1.2.3