diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-02-08 04:55:05 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2006-02-08 04:55:05 +0000 |
commit | 68b4e0616ab80a32903d0c6ede232e47d4d88382 (patch) | |
tree | d71f4054e5a360af26940acfe16053068206cedb /drv_serdisplib.c | |
parent | 5c71af9339a592ef3759b40614685c83537d3ac3 (diff) | |
download | lcd4linux-68b4e0616ab80a32903d0c6ede232e47d4d88382.tar.gz |
[lcd4linux @ 2006-02-08 04:55:03 by reinelt]
moved widget registration to drv_generic_graphic
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@635 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_serdisplib.c')
-rw-r--r-- | drv_serdisplib.c | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c index d8e98f8..d6b003c 100644 --- a/drv_serdisplib.c +++ b/drv_serdisplib.c @@ -1,4 +1,4 @@ -/* $Id: drv_serdisplib.c,v 1.7 2006/01/30 06:25:54 reinelt Exp $ +/* $Id: drv_serdisplib.c,v 1.8 2006/02/08 04:55:05 reinelt Exp $ * * driver for serdisplib displays * @@ -23,6 +23,9 @@ * * * $Log: drv_serdisplib.c,v $ + * Revision 1.8 2006/02/08 04:55:05 reinelt + * moved widget registration to drv_generic_graphic + * * Revision 1.7 2006/01/30 06:25:54 reinelt * added CVS Revision * @@ -76,10 +79,6 @@ #include "cfg.h" #include "qprintf.h" #include "plugin.h" -#include "widget.h" -#include "widget_text.h" -#include "widget_icon.h" -#include "widget_bar.h" #include "drv.h" #include "drv_generic_graphic.h" @@ -294,16 +293,6 @@ static void plugin_rotate(RESULT * result, RESULT * arg1) /****************************************/ -/*** widget callbacks ***/ -/****************************************/ - - -/* using drv_generic_graphic_draw(W) */ -/* using drv_generic_graphic_icon_draw(W) */ -/* using drv_generic_graphic_bar_draw(W) */ - - -/****************************************/ /*** exported functions ***/ /****************************************/ @@ -319,10 +308,9 @@ int drv_SD_list(void) /* initialize driver & display */ int drv_SD_init(const char *section, const int quiet) { - WIDGET_CLASS wc; int ret; - info("%s: %s", Name, "$Revision: 1.7 $"); + info("%s: %s", Name, "$Revision: 1.8 $"); /* real worker functions */ drv_generic_graphic_real_blit = drv_SD_blit; @@ -344,21 +332,6 @@ int drv_SD_init(const char *section, const int quiet) } } - /* register text widget */ - wc = Widget_Text; - wc.draw = drv_generic_graphic_draw; - widget_register(&wc); - - /* register icon widget */ - wc = Widget_Icon; - wc.draw = drv_generic_graphic_icon_draw; - widget_register(&wc); - - /* register bar widget */ - wc = Widget_Bar; - wc.draw = drv_generic_graphic_bar_draw; - widget_register(&wc); - /* register plugins */ AddFunction("LCD::contrast", 1, plugin_contrast); AddFunction("LCD::backlight", 1, plugin_backlight); |