Put proper comments in first
This commit is contained in:
parent
f139b01562
commit
5bcda4e05e
1 changed files with 72 additions and 12 deletions
60
video.c
60
video.c
|
@ -1327,11 +1327,21 @@ static void render_scanline_text_base_color16(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: base
|
||||
* alpha :color16
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, base, color16);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: base
|
||||
* alpha :color16
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, base, color16);
|
||||
}
|
||||
|
@ -1396,11 +1406,21 @@ static void render_scanline_text_transparent_color16(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: transparent
|
||||
* alpha :color16
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, transparent, color16);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: transparent
|
||||
* alpha :color16
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, transparent, color16);
|
||||
}
|
||||
|
@ -1465,11 +1485,21 @@ static void render_scanline_text_base_color32(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: base
|
||||
* alpha :color32
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, base, color32);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: base
|
||||
* alpha :color32
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, base, color32);
|
||||
}
|
||||
|
@ -1534,11 +1564,21 @@ static void render_scanline_text_transparent_color32(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: transparent
|
||||
* alpha :color32
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, transparent, color32);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: transparent
|
||||
* alpha :color32
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, transparent, color32);
|
||||
}
|
||||
|
@ -1603,11 +1643,21 @@ static void render_scanline_text_base_alpha(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: base
|
||||
* alpha : alpha
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, base, alpha);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: base
|
||||
* alpha : alpha
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, base, alpha);
|
||||
}
|
||||
|
@ -1672,11 +1722,21 @@ static void render_scanline_text_transparent_alpha(u32 layer,
|
|||
|
||||
if(bg_control & 0x80)
|
||||
{
|
||||
/* color depth: 8bpp
|
||||
* combine: transparent
|
||||
* alpha : alpha
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(8bpp, transparent, alpha);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* color depth: 4bpp
|
||||
* combine: transparent
|
||||
* alpha : alpha
|
||||
*/
|
||||
|
||||
/* Render a single scanline of text tiles */
|
||||
tile_render(4bpp, transparent, alpha);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue