From 54672b61c61264676d65f55fdd7ea392fcc88c83 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Mon, 31 Jul 2006 03:48:09 +0000 Subject: [lcd4linux @ 2006-07-31 03:48:09 by reinelt] preparations for scrolling --- drv_generic_graphic.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'drv_generic_graphic.c') diff --git a/drv_generic_graphic.c b/drv_generic_graphic.c index bf11a24..197450c 100644 --- a/drv_generic_graphic.c +++ b/drv_generic_graphic.c @@ -1,4 +1,4 @@ -/* $Id +/* $Id: drv_generic_graphic.c,v 1.29 2006/07/31 03:48:09 reinelt Exp $ * * generic driver helper for graphic displays * @@ -23,6 +23,9 @@ * * * $Log: drv_generic_graphic.c,v $ + * Revision 1.29 2006/07/31 03:48:09 reinelt + * preparations for scrolling + * * Revision 1.28 2006/06/20 08:50:58 reinelt * widget_image linker error hopefully finally fixed * @@ -174,6 +177,7 @@ #include "widget_image.h" #include "rgb.h" #include "drv.h" +#include "drv_generic.h" #include "drv_generic_graphic.h" #include "font_6x8.h" @@ -181,9 +185,6 @@ #include #endif -int DROWS, DCOLS; /* display size (pixels!) */ -int XRES, YRES; /* pixels of one char cell */ - /* pixel colors */ RGBA FG_COL = { R: 0x00, G: 0x00, B: 0x00, A:0xff }; RGBA BG_COL = { R: 0xff, G: 0xff, B: 0xff, A:0xff }; @@ -193,10 +194,6 @@ RGBA NO_COL = { R: 0x00, G: 0x00, B: 0x00, A:0x00 }; static char *Section = NULL; static char *Driver = NULL; -/* layout size (pixels!) */ -static int LROWS = 0; -static int LCOLS = 0; - /* framebuffer */ static RGBA *drv_generic_graphic_FB[LAYERS] = { NULL, }; @@ -647,6 +644,9 @@ int drv_generic_graphic_init(const char *section, const char *driver) } } + /* init generic driver & register plugins */ + drv_generic_init(); + /* set default colors */ color = cfg_get(Section, "foreground", "000000ff"); if (color2RGBA(color, &FG_COL) < 0) { -- cgit v1.2.3