summaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 71dfde8..036c409 100644
--- a/screen.c
+++ b/screen.c
@@ -50,7 +50,11 @@ int screen_open(int width, int height, int bpp)
screen_width = width;
screen_height = height;
screen_bpp = bpp;
- screen_offset = 0; /* Can we get front buffer offset in vram? */
+ /* NOTE: find vt console fb in dmesg log:
+[ 9.435846] [drm] nouveau 0000:01:00.0: allocated 1680x1050 fb: 0x49000, bo ffff88007c0e8600
+ */
+ screen_offset = 0x49000;
+
screen_pitch = screen_width*(screen_bpp/8);
if ((screen_pitch & 255)!=0) {
screen_pitch = (screen_pitch | 255)+1; /* Align on 256 bytes boundary */