aboutsummaryrefslogtreecommitdiffstats
path: root/fbtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-23 16:16:32 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-23 16:16:32 +0100
commita80c7e0c5a22c303bc24c97f01f61466eb94b03e (patch)
treea2d713ec50cddada4737be9ffe0f39a2e0e233f1 /fbtools.c
parent3da80cb1474b455f4ed3d27aa72441fd145a9898 (diff)
downloadfbida-a80c7e0c5a22c303bc24c97f01f61466eb94b03e.tar.gz
gfx: move over memory pointer
Diffstat (limited to 'fbtools.c')
-rw-r--r--fbtools.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fbtools.c b/fbtools.c
index 49afb2c..9618e7a 100644
--- a/fbtools.c
+++ b/fbtools.c
@@ -34,8 +34,6 @@ static const char *strsignal(int signr)
/* -------------------------------------------------------------------- */
/* exported stuff */
-unsigned char *fb_mem;
-int fb_mem_offset = 0;
int fb_switch_state = FB_ACTIVE;
/* -------------------------------------------------------------------- */
@@ -43,6 +41,8 @@ int fb_switch_state = FB_ACTIVE;
static struct fb_fix_screeninfo fb_fix;
static struct fb_var_screeninfo fb_var;
+static unsigned char *fb_mem;
+static int fb_mem_offset = 0;
static int fb,tty;
@@ -524,6 +524,8 @@ gfxstate* fb_init(char *device, char *mode, int vt)
gfx->hdisplay = fb_var.xres;
gfx->vdisplay = fb_var.yres;
gfx->stride = fb_fix.line_length;
+ gfx->mem = fb_mem;
+
gfx->rlen = fb_var.red.length;
gfx->glen = fb_var.green.length;
gfx->blen = fb_var.blue.length;