From 0d92f5576d7ff9e45012eee6ebe16caf219651b3 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 27 Nov 2012 20:29:17 +0100 Subject: [PATCH] Allow getting and setting arch framebuffer config. Making the fields protected allows them to be set by arch framebuffer implementations. The getters can be used to retrieve the configuration from outside the implementation. --- src/system/boot/arch/arm/arch_framebuffer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/system/boot/arch/arm/arch_framebuffer.h b/src/system/boot/arch/arm/arch_framebuffer.h index 6057d0f7ac..df71f0ec67 100644 --- a/src/system/boot/arch/arm/arch_framebuffer.h +++ b/src/system/boot/arch/arm/arch_framebuffer.h @@ -39,12 +39,17 @@ public: virtual addr_t Base() { return fBase; }; + int Width() { return fCurrentWidth; }; + int Height() { return fCurrentHeight; }; + int Depth() { return fCurrentDepth; }; + int BytesPerRow() { return fCurrentBytesPerRow; }; + protected: addr_t fBase; -private: int fCurrentWidth; int fCurrentHeight; int fCurrentDepth; + int fCurrentBytesPerRow; };