aboutsummaryrefslogtreecommitdiff
path: root/src/graphics
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-11 09:32:31 -0700
committerChristian Cunningham <cc@localhost>2022-01-11 09:32:31 -0700
commit516df5812ac64d87ac2e32ebf0211534ea0abaa7 (patch)
tree2850df144c282e96dfa15a6413b3ba0a29cdf9c4 /src/graphics
parent6d4d2fe7fc4a0d2c70b64d9c232ef2758dd8bf80 (diff)
Update stuff
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/lfb.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c
index 39d921d..3ad9917 100644
--- a/src/graphics/lfb.c
+++ b/src/graphics/lfb.c
@@ -8,6 +8,9 @@
unsigned int width, height, pitch, isrgb; /* dimensions and channel order */
unsigned char *lfb; /* raw frame buffer address */
+#define SCR_WIDTH 1024
+#define SCR_HEIGHT 768
+
/**
* Set screen resolution to 1024x768
*/
@@ -19,14 +22,14 @@ void lfb_init(void)
mbox[2] = 0x48003; //set phy wh
mbox[3] = 8;
mbox[4] = 8;
- mbox[5] = 1024; //FrameBufferInfo.width
- mbox[6] = 768; //FrameBufferInfo.height
+ mbox[5] = SCR_WIDTH; //FrameBufferInfo.width
+ mbox[6] = SCR_HEIGHT; //FrameBufferInfo.height
mbox[7] = 0x48004; //set virt wh
mbox[8] = 8;
mbox[9] = 8;
- mbox[10] = 1024; //FrameBufferInfo.virtual_width
- mbox[11] = 768; //FrameBufferInfo.virtual_height
+ mbox[10] = SCR_WIDTH; //FrameBufferInfo.virtual_width
+ mbox[11] = SCR_HEIGHT; //FrameBufferInfo.virtual_height
mbox[12] = 0x48009; //set virt offset
mbox[13] = 8;