Added the fine grained backlight hierarchy code.

Depending on how the server sets the backlight it controls the clients
(if OPEN then the clients have individual control). If the client is set to
open (inherited from the server) then each screen has backlight control.
This commit is contained in:
glengray committed 2001-11-14 13:57:25 +00:00
1 parent a6fec90312
commit 853d9053dd
7 files changed
+74 -32

No files matched your search

+4 -1
View File
@@ -12,6 +12,7 @@
#include "screenlist.h"
#include "screen.h"
#include "main.h"
#include "render.h"
int default_duration = 0;
int default_timeout = -1;
@@ -38,7 +39,9 @@ screen_create ()
s->parent = NULL;
s->widgets = NULL;
s->timeout = default_timeout; //ignored unless greater than 0.
s->backlight_state = BACKLIGHT_NOTSET; //Lets the screen do it's own
//or do what the client says.
s->widgets = LL_new ();
if (!s->widgets) {
fprintf (stderr, "screen_create: Error allocating widget list\n");