diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-06-25 21:09:34 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-06-25 21:09:34 +0000 |
commit | 0690ac1966772975879540a4c614b497858ecfb7 (patch) | |
tree | 8e223dccdf10bb38b902a08633112f4e1b68ccbc /apps | |
parent | b058366b1310bb8495bdc002a86e3c2500aa5e6f (diff) | |
download | rockbox-0690ac1966772975879540a4c614b497858ecfb7.tar.gz rockbox-0690ac1966772975879540a4c614b497858ecfb7.zip |
added comments about default values
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4804 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/lib/gray.h | 10 | ||||
-rw-r--r-- | apps/plugins/lib/gray_set_background.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/gray_set_drawinfo.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/gray_set_drawmode.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/gray_set_foreground.c | 2 | ||||
-rw-r--r-- | apps/plugins/lib/gray_setfont.c | 2 |
6 files changed, 20 insertions, 0 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h index b7b0affd73..918d7ecb4a 100644 --- a/apps/plugins/lib/gray.h +++ b/apps/plugins/lib/gray.h | |||
@@ -139,6 +139,8 @@ void gray_position_display(int x, int by); | |||
139 | GRAY_DRAW_FG: Only foreground pixels are drawn | 139 | GRAY_DRAW_FG: Only foreground pixels are drawn |
140 | GRAY_DRAW_BG: Only background pixels are drawn | 140 | GRAY_DRAW_BG: Only background pixels are drawn |
141 | GRAY_DRAW_SOLID: Foreground and background pixels are drawn | 141 | GRAY_DRAW_SOLID: Foreground and background pixels are drawn |
142 | |||
143 | Default after initialization: GRAY_DRAW_SOLID | ||
142 | */ | 144 | */ |
143 | void gray_set_drawmode(int drawmode); | 145 | void gray_set_drawmode(int drawmode); |
144 | 146 | ||
@@ -155,6 +157,8 @@ void gray_set_drawmode(int drawmode); | |||
155 | Set the foreground shade for subsequent drawing operations | 157 | Set the foreground shade for subsequent drawing operations |
156 | ---------------------------------------------------------------------------- | 158 | ---------------------------------------------------------------------------- |
157 | brightness = 0 (black) .. 255 (white) | 159 | brightness = 0 (black) .. 255 (white) |
160 | |||
161 | Default after initialization: 0 | ||
158 | */ | 162 | */ |
159 | void gray_set_foreground(int brightness); | 163 | void gray_set_foreground(int brightness); |
160 | 164 | ||
@@ -162,6 +166,8 @@ void gray_set_foreground(int brightness); | |||
162 | Set the background shade for subsequent drawing operations | 166 | Set the background shade for subsequent drawing operations |
163 | ---------------------------------------------------------------------------- | 167 | ---------------------------------------------------------------------------- |
164 | brightness = 0 (black) .. 255 (white) | 168 | brightness = 0 (black) .. 255 (white) |
169 | |||
170 | Default after initialization: 255 | ||
165 | */ | 171 | */ |
166 | void gray_set_background(int brightness); | 172 | void gray_set_background(int brightness); |
167 | 173 | ||
@@ -170,6 +176,8 @@ void gray_set_background(int brightness); | |||
170 | ---------------------------------------------------------------------------- | 176 | ---------------------------------------------------------------------------- |
171 | If you hand it -1 (or in fact any other out-of-bounds value) for a | 177 | If you hand it -1 (or in fact any other out-of-bounds value) for a |
172 | parameter, that particular setting won't be changed | 178 | parameter, that particular setting won't be changed |
179 | |||
180 | Default after initialization: GRAY_DRAW_SOLID, 0, 255 | ||
173 | */ | 181 | */ |
174 | void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness); | 182 | void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness); |
175 | 183 | ||
@@ -378,6 +386,8 @@ void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny, | |||
378 | ---------------------------------------------------------------------------- | 386 | ---------------------------------------------------------------------------- |
379 | newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox | 387 | newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox |
380 | core routines | 388 | core routines |
389 | |||
390 | Default after initialization: FONT_SYSFIXED | ||
381 | */ | 391 | */ |
382 | void gray_setfont(int newfont); | 392 | void gray_setfont(int newfont); |
383 | 393 | ||
diff --git a/apps/plugins/lib/gray_set_background.c b/apps/plugins/lib/gray_set_background.c index b2cbedfcc0..c78e9ff112 100644 --- a/apps/plugins/lib/gray_set_background.c +++ b/apps/plugins/lib/gray_set_background.c | |||
@@ -33,6 +33,8 @@ | |||
33 | Set the background shade for subsequent drawing operations | 33 | Set the background shade for subsequent drawing operations |
34 | ---------------------------------------------------------------------------- | 34 | ---------------------------------------------------------------------------- |
35 | brightness = 0 (black) .. 255 (white) | 35 | brightness = 0 (black) .. 255 (white) |
36 | |||
37 | Default after initialization: 255 | ||
36 | */ | 38 | */ |
37 | void gray_set_background(int brightness) | 39 | void gray_set_background(int brightness) |
38 | { | 40 | { |
diff --git a/apps/plugins/lib/gray_set_drawinfo.c b/apps/plugins/lib/gray_set_drawinfo.c index 123d3d8939..59928882d7 100644 --- a/apps/plugins/lib/gray_set_drawinfo.c +++ b/apps/plugins/lib/gray_set_drawinfo.c | |||
@@ -34,6 +34,8 @@ | |||
34 | ---------------------------------------------------------------------------- | 34 | ---------------------------------------------------------------------------- |
35 | If you hand it -1 (or in fact any other out-of-bounds value) for a | 35 | If you hand it -1 (or in fact any other out-of-bounds value) for a |
36 | parameter, that particular setting won't be changed | 36 | parameter, that particular setting won't be changed |
37 | |||
38 | Default after initialization: GRAY_DRAW_SOLID, 0, 255 | ||
37 | */ | 39 | */ |
38 | void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness) | 40 | void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness) |
39 | { | 41 | { |
diff --git a/apps/plugins/lib/gray_set_drawmode.c b/apps/plugins/lib/gray_set_drawmode.c index b32f2a2211..969b99894f 100644 --- a/apps/plugins/lib/gray_set_drawmode.c +++ b/apps/plugins/lib/gray_set_drawmode.c | |||
@@ -38,6 +38,8 @@ | |||
38 | GRAY_DRAW_FG: Only foreground pixels are drawn | 38 | GRAY_DRAW_FG: Only foreground pixels are drawn |
39 | GRAY_DRAW_BG: Only background pixels are drawn | 39 | GRAY_DRAW_BG: Only background pixels are drawn |
40 | GRAY_DRAW_SOLID: Foreground and background pixels are drawn | 40 | GRAY_DRAW_SOLID: Foreground and background pixels are drawn |
41 | |||
42 | Default after initialization: GRAY_DRAW_SOLID | ||
41 | */ | 43 | */ |
42 | void gray_set_drawmode(int drawmode) | 44 | void gray_set_drawmode(int drawmode) |
43 | { | 45 | { |
diff --git a/apps/plugins/lib/gray_set_foreground.c b/apps/plugins/lib/gray_set_foreground.c index 994f9d6d25..afde64f645 100644 --- a/apps/plugins/lib/gray_set_foreground.c +++ b/apps/plugins/lib/gray_set_foreground.c | |||
@@ -33,6 +33,8 @@ | |||
33 | Set the foreground shade for subsequent drawing operations | 33 | Set the foreground shade for subsequent drawing operations |
34 | ---------------------------------------------------------------------------- | 34 | ---------------------------------------------------------------------------- |
35 | brightness = 0 (black) .. 255 (white) | 35 | brightness = 0 (black) .. 255 (white) |
36 | |||
37 | Default after initialization: 0 | ||
36 | */ | 38 | */ |
37 | void gray_set_foreground(int brightness) | 39 | void gray_set_foreground(int brightness) |
38 | { | 40 | { |
diff --git a/apps/plugins/lib/gray_setfont.c b/apps/plugins/lib/gray_setfont.c index ed68362484..714a1f5b17 100644 --- a/apps/plugins/lib/gray_setfont.c +++ b/apps/plugins/lib/gray_setfont.c | |||
@@ -34,6 +34,8 @@ | |||
34 | ---------------------------------------------------------------------------- | 34 | ---------------------------------------------------------------------------- |
35 | newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox | 35 | newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox |
36 | core routines | 36 | core routines |
37 | |||
38 | Default after initialization: FONT_SYSFIXED | ||
37 | */ | 39 | */ |
38 | void gray_setfont(int newfont) | 40 | void gray_setfont(int newfont) |
39 | { | 41 | { |