summaryrefslogtreecommitdiff
path: root/kms++/inc
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2022-11-02 09:38:36 +0200
committerGitHub <noreply@github.com>2022-11-02 09:38:36 +0200
commit8cf1bdb791f008b0728a0de37e1f1b6648521ac2 (patch)
tree11fb83368c80c055330131e7f94952abaaff75d2 /kms++/inc
parent0f3534d3be5750ff9cb03cb997a8efc91de07347 (diff)
parentb141ae7acc753481d050ebb16d20fc44000c55e7 (diff)
Merge pull request #66 from popcornmix/show_fb_format
kmsxx: Also report format of framebuffer
Diffstat (limited to 'kms++/inc')
-rw-r--r--kms++/inc/kms++/framebuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kms++/inc/kms++/framebuffer.h b/kms++/inc/kms++/framebuffer.h
index 1bd477c..fc50b02 100644
--- a/kms++/inc/kms++/framebuffer.h
+++ b/kms++/inc/kms++/framebuffer.h
@@ -40,6 +40,7 @@ public:
uint32_t width() const override { return m_width; }
uint32_t height() const override { return m_height; }
+ PixelFormat format() const override { return m_format; }
void flush(uint32_t x, uint32_t y, uint32_t width, uint32_t height);
void flush();
@@ -50,6 +51,7 @@ protected:
private:
uint32_t m_width;
uint32_t m_height;
+ PixelFormat m_format;
};
} // namespace kms