From 0690ac1966772975879540a4c614b497858ecfb7 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 25 Jun 2004 21:09:34 +0000 Subject: added comments about default values git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4804 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/gray.h | 10 ++++++++++ apps/plugins/lib/gray_set_background.c | 2 ++ apps/plugins/lib/gray_set_drawinfo.c | 2 ++ apps/plugins/lib/gray_set_drawmode.c | 2 ++ apps/plugins/lib/gray_set_foreground.c | 2 ++ apps/plugins/lib/gray_setfont.c | 2 ++ 6 files changed, 20 insertions(+) (limited to 'apps') 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); GRAY_DRAW_FG: Only foreground pixels are drawn GRAY_DRAW_BG: Only background pixels are drawn GRAY_DRAW_SOLID: Foreground and background pixels are drawn + + Default after initialization: GRAY_DRAW_SOLID */ void gray_set_drawmode(int drawmode); @@ -155,6 +157,8 @@ void gray_set_drawmode(int drawmode); Set the foreground shade for subsequent drawing operations ---------------------------------------------------------------------------- brightness = 0 (black) .. 255 (white) + + Default after initialization: 0 */ void gray_set_foreground(int brightness); @@ -162,6 +166,8 @@ void gray_set_foreground(int brightness); Set the background shade for subsequent drawing operations ---------------------------------------------------------------------------- brightness = 0 (black) .. 255 (white) + + Default after initialization: 255 */ void gray_set_background(int brightness); @@ -170,6 +176,8 @@ void gray_set_background(int brightness); ---------------------------------------------------------------------------- If you hand it -1 (or in fact any other out-of-bounds value) for a parameter, that particular setting won't be changed + + Default after initialization: GRAY_DRAW_SOLID, 0, 255 */ void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness); @@ -378,6 +386,8 @@ void gray_drawbitmap(unsigned char *src, int x, int y, int nx, int ny, ---------------------------------------------------------------------------- newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox core routines + + Default after initialization: FONT_SYSFIXED */ void gray_setfont(int newfont); 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 @@ Set the background shade for subsequent drawing operations ---------------------------------------------------------------------------- brightness = 0 (black) .. 255 (white) + + Default after initialization: 255 */ void gray_set_background(int brightness) { 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 @@ ---------------------------------------------------------------------------- If you hand it -1 (or in fact any other out-of-bounds value) for a parameter, that particular setting won't be changed + + Default after initialization: GRAY_DRAW_SOLID, 0, 255 */ void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness) { 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 @@ GRAY_DRAW_FG: Only foreground pixels are drawn GRAY_DRAW_BG: Only background pixels are drawn GRAY_DRAW_SOLID: Foreground and background pixels are drawn + + Default after initialization: GRAY_DRAW_SOLID */ void gray_set_drawmode(int drawmode) { 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 @@ Set the foreground shade for subsequent drawing operations ---------------------------------------------------------------------------- brightness = 0 (black) .. 255 (white) + + Default after initialization: 0 */ void gray_set_foreground(int brightness) { 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 @@ ---------------------------------------------------------------------------- newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox core routines + + Default after initialization: FONT_SYSFIXED */ void gray_setfont(int newfont) { -- cgit v1.2.3