summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-04-18 21:35:46 -0400
committerIan Moffett <ian@osmora.org>2025-04-18 21:35:46 -0400
commit776923710d509a04ccc082c1f8dbc6b0c10b3910 (patch)
treebd97d035fe0a2588b4b34bc8567669608625f75e
parentefca7154774baf5235bf0c379e265334f34c0127 (diff)
kernel: video: Add bpp field to fbdev
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/dev/video/fbdev.c1
-rw-r--r--sys/include/dev/video/fbdev.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/video/fbdev.c b/sys/dev/video/fbdev.c
index cf4954a..f21c769 100644
--- a/sys/dev/video/fbdev.c
+++ b/sys/dev/video/fbdev.c
@@ -48,5 +48,6 @@ fbdev_get(void)
ret.width = FRAMEBUFFER->width;
ret.height = FRAMEBUFFER->height;
ret.pitch = FRAMEBUFFER->pitch;
+ ret.bpp = FRAMEBUFFER->bpp;
return ret;
}
diff --git a/sys/include/dev/video/fbdev.h b/sys/include/dev/video/fbdev.h
index d23fcd6..c80fd92 100644
--- a/sys/include/dev/video/fbdev.h
+++ b/sys/include/dev/video/fbdev.h
@@ -38,6 +38,7 @@ struct fbdev {
uint32_t width;
uint32_t height;
uint32_t pitch;
+ uint32_t bpp;
};
/*