aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/framebuffer.cc
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-28 15:07:12 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-28 15:07:12 +0200
commit067d6e340be698b0e26b7732215a1969e0e683f3 (patch)
tree88cf82e14bdcfc460a18980a73e419fbb0c58763 /src/drivers/framebuffer.cc
parent778e43c0a2d1f1cc952c3ec0c0b9d5bd3ff4995a (diff)
Refactoring
Diffstat (limited to 'src/drivers/framebuffer.cc')
-rw-r--r--src/drivers/framebuffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/framebuffer.cc b/src/drivers/framebuffer.cc
index 2ac47db..4d5389c 100644
--- a/src/drivers/framebuffer.cc
+++ b/src/drivers/framebuffer.cc
@@ -7,11 +7,11 @@ FB_CFG fb_cfg;
void framebuffer_init(FB_CFG config){
fb_cfg=config;
+ PAGING_MAP_RANGE(fb_cfg.location, fb_cfg.pitch*fb_cfg.height);
}
void framebuffer_draw(FB_PIXEL p){
u8 *pixel=(u8*)(fb_cfg.location+p.x*(fb_cfg.depth/8)+p.y*fb_cfg.pitch);
- PAGING_MAP(pixel);
pixel[0]=p.r;
pixel[1]=p.g;
pixel[2]=p.b;