1
0
Fork 0
forked from len0rd/rockbox

added comments about default values

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4804 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-06-25 21:09:34 +00:00
parent b058366b13
commit 0690ac1966
6 changed files with 20 additions and 0 deletions

View file

@ -139,6 +139,8 @@ void gray_position_display(int x, int by);
GRAY_DRAW_FG: Only foreground pixels are drawn GRAY_DRAW_FG: Only foreground pixels are drawn
GRAY_DRAW_BG: Only background pixels are drawn GRAY_DRAW_BG: Only background pixels are drawn
GRAY_DRAW_SOLID: Foreground and 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); void gray_set_drawmode(int drawmode);
@ -155,6 +157,8 @@ void gray_set_drawmode(int drawmode);
Set the foreground shade for subsequent drawing operations Set the foreground shade for subsequent drawing operations
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
brightness = 0 (black) .. 255 (white) brightness = 0 (black) .. 255 (white)
Default after initialization: 0
*/ */
void gray_set_foreground(int brightness); void gray_set_foreground(int brightness);
@ -162,6 +166,8 @@ void gray_set_foreground(int brightness);
Set the background shade for subsequent drawing operations Set the background shade for subsequent drawing operations
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
brightness = 0 (black) .. 255 (white) brightness = 0 (black) .. 255 (white)
Default after initialization: 255
*/ */
void gray_set_background(int brightness); 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 If you hand it -1 (or in fact any other out-of-bounds value) for a
parameter, that particular setting won't be changed 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); 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 newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox
core routines core routines
Default after initialization: FONT_SYSFIXED
*/ */
void gray_setfont(int newfont); void gray_setfont(int newfont);

View file

@ -33,6 +33,8 @@
Set the background shade for subsequent drawing operations Set the background shade for subsequent drawing operations
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
brightness = 0 (black) .. 255 (white) brightness = 0 (black) .. 255 (white)
Default after initialization: 255
*/ */
void gray_set_background(int brightness) void gray_set_background(int brightness)
{ {

View file

@ -34,6 +34,8 @@
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
If you hand it -1 (or in fact any other out-of-bounds value) for a If you hand it -1 (or in fact any other out-of-bounds value) for a
parameter, that particular setting won't be changed 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) void gray_set_drawinfo(int drawmode, int fg_brightness, int bg_brightness)
{ {

View file

@ -38,6 +38,8 @@
GRAY_DRAW_FG: Only foreground pixels are drawn GRAY_DRAW_FG: Only foreground pixels are drawn
GRAY_DRAW_BG: Only background pixels are drawn GRAY_DRAW_BG: Only background pixels are drawn
GRAY_DRAW_SOLID: Foreground and 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) void gray_set_drawmode(int drawmode)
{ {

View file

@ -33,6 +33,8 @@
Set the foreground shade for subsequent drawing operations Set the foreground shade for subsequent drawing operations
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
brightness = 0 (black) .. 255 (white) brightness = 0 (black) .. 255 (white)
Default after initialization: 0
*/ */
void gray_set_foreground(int brightness) void gray_set_foreground(int brightness)
{ {

View file

@ -34,6 +34,8 @@
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox newfont can be FONT_SYSFIXED or FONT_UI the same way as with the Rockbox
core routines core routines
Default after initialization: FONT_SYSFIXED
*/ */
void gray_setfont(int newfont) void gray_setfont(int newfont)
{ {